Saturday, March 7, 2015

Re: colorcolumn and foldtext

Hi Bram!

On Fr, 06 Mär 2015, Bram Moolenaar wrote:

> Christian wrote:
> > Bram,
> >
> > On Fr, 06 Mär 2015, Christian Brabandt wrote:
> > > On Do, 05 Mär 2015, Carlos Pita wrote:
> > >
> > > > Hi all,
> > > >
> > > > is there any way to force the color column to show above a fold header?
> > > >
> > > > I tried:
> > > >
> > > > highlight Folded cterm=none ctermbg=none
> > > >
> > > > and
> > > >
> > > > highlight clear Folded
> > > >
> > > > to no avail.
> > > >
> > > > See the attached screenshot in case I'm not being clear.
> > >
> > > I don't think there is a possibility. Vims highlighting priorities are
> > > mostly hard coded in the source. So there is nothing you can do about.
> >
> > Here is a patch, that makes the colorcolumn drawn on top of folded
> > regions.
>
> The idea of 'colorcolumn' is that it applies to the text. So you can
> align items or make sure they are in a certain column. I don't see
> how that is useful in a folded region. I would think it makes the
> closed fold look odd. I have the idea that the closed fold is "above"
> the text and the 'colorcolumn' is "under" the text.

I would see it the other way around. But that is debatable, I guess. I
just thought, when the cursorcolumn is displayed, the colorcolumn might
as well be displayed.

> So, why would someone want to change this?

Because broken colorcolumns looks ugly ;)


Best,
Christian
--
Ein Prognostiker ist ein Mann, der in lichten Momenten düstere
Ahnungen hat.
-- Tennessee Williams

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: