On Wed, Jul 22, 2009 at 3:12 PM, Jan Kaspar <[email protected]> wrote:
> Hello, > > I may have quite a stupid question - is it possible to highlight a full > line? > > I'd like to give a different background color to a block of code (a class > definition, doxygen documentation, etc). To do so, I use :highlight ... > guibg=... command. This works, but only the part of line which contains some > text, is eventually highlighted. This looks strange and disturbs eyes. I'd > like get also the part from line-end onwards highlighted. Is that possible? > How? > You could use :syn match, i.e. :syn match YourSynType "^.*yourpattern.*$" :hi YourSynType guibg=skyblue I don't see how to highlight past the end, though. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
