On 01/20/13 05:06, Aggelos Kolaitis wrote:
> I'm trying to highlight words with capital letters with this in my .vimrc:
>
> match Keyword /[A-Z]\{2,\}/
>
> I know it's problematic, because it keeps doing this:
>
> Highlights SDLW from SDLWindow
> Highlights SDL GL from SDL_GL_blahblah (doesn't highlight underscores)
>
> This destroys the readability of my source code.
You can add the "\>" token to ensure that they go through the end of
the word:
match Keyword /[A-Z]\{2,}\>/
-tim
--
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
Sunday, January 20, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment