2009/6/29 John Beckett <[email protected]>: > > Jeri Raye wrote: >> is it then possible to give PI MAX and MIN anywhere used in >> the file to give it the color brown? > > Highlight using 'Keyword': > :match Keyword /\<PI\>\|\<MAX\>\|\<MIN\>/
Note that, if there are a LOT of keywords, this will eventually start to slow Vim down (due to the regular expression complexity or number of regular expressions). A faster match can be achieved with: syn keyword Keyword PI MAX MIN Al --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
