Hi, airforceone schrieb: > > I'm trying to figure out how to highlight specific portions of the syntax. > Take a look at this (taken from the vim documentation): > > *Statement any statement > Conditional if, then, else, endif, switch, etc. > Repeat for, do, while, etc. > Label case, default, etc. > Operator "sizeof", "+", "*", etc. > Keyword any other keyword > Exception try, catch, throw > > We can do syntax highlighting for the Statement syntax by doing the > following in vimrc: > > hi Statement gui=none guifg=Red > > That command will apply highlighting to all the minor groups as well > (conditional, repeat, etc.) > > Is it possible to apply highlighting to a specific group (conditional, > repeat, label, etc), rather than the major group (statement)? > > I tried doing pattern matching but that takes way too much work...
have you tried hi Conditional guifg=Red ? This worked for me. Regards, Jürgen -- Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. (Calvin) -- 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
