Saturday, September 4, 2010

highlight lines longer than 80 chars for a specific file types.

Hi,
I would like to highlight lines that are longer then 80 chars.
I use:
:match ErrorMsg '\%>80v.\+'
the problem is that I only want to do that for cpp and h files, to set
if for 100 for java and to unset it for any other type.
Anyone knows how this can be done?

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

Post a Comment