Sunday, March 8, 2015

Re: colorcolumn and foldtext

Christian wrote:

> > > 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 ;)

I have to admit that it's now inconsistent, having cursorcolumn and
colorcolumn behave differently. Did anybody complain about the behavior
of cursorcolumn? Perhaps then it's best to do the same for colorcolumn.
Consistency is more important in this case.

--
Not too long ago, a program was something you watched on TV...

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
--
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: