Sunday, January 22, 2012

Re: colorcolumn rows

On Sun, January 22, 2012 4:10 pm, sinbad wrote:
> im using vim 7.3, i learnt about the colorcolumn option.
> is it possible to color a column only for certain number of
> rows ?

No. You can use the matchadd() functions for this, e.g.
call matchadd('TODO', '\%>10l\%10v\%<20l')

which would match virtual column 10 on lines 11-19.

regards,
Christian

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

No comments: