Loading ...
Sorry, an error occurred while loading the content.

Re: give c defines a color

Expand Messages
  • A. S. Budden
    ... 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
    Message 1 of 4 , Jun 30, 2009
    • 0 Attachment
      2009/6/29 John Beckett <johnb.beckett@...>:
      >
      > 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
      -~----------~----~----~----~------~----~------~--~---
    Your message has been successfully submitted and would be delivered to recipients shortly.