On Jan 24, 8:27 am, Gary Johnson <[email protected]> wrote: > On 2012-01-23, sinbad wrote: > > On Jan 23, 12:51 pm, "Christian Brabandt" wrote: > > > 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 > > > is it possible to highlight the column that is not present, for > > example in > > the above matchadd call, the highlighting won't happen if > > there is no character at column 10, is it possible to highlight > > even though there is nothing there to highlight. > > No. That's what 'colorcolumn' is for. > > Regards, > Gary
but, i can't use colorcolumn to highlight only certain number of rows right! -- 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
