Friday, March 6, 2015

Re: colorcolumn and foldtext

Hi Bram,

> 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.
>
> So, why would someone want to change this?

I see the rationale behind what you're saying and I do agree. But there is a
gotcha. It's related to the way the fold line is filled with chars (as in
'fillchars'). Say I find it too invasive so I set the fold fillchar to space
and its background to the normal background, in order to turn it "invisible".
Now I have a colorcolumn splitted here and there and that *really* looks odd.
Maybe the solution is not to force filling the fold line all the way to the
right margin but to make it the length of the string foldtext() returned.

Cheers
--
Carlos

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

Post a Comment