sinbad wrote:
i want to change the syntax color
of c #defines, how can i do that.
Check out hicolors --

http://mysite.verizon.net/astronaut/vim/index.html#HICOLORS (cutting edge)
    http://vim.sourceforge.net/scripts/script.php?script_id=1081  (stable)

It gives help for highlighting colors by showing the name of the highlight in its currently selected color. Left-clicking on that color name will bring you
to the help for it, and right-clicking on it will bring up a color editor.

You may use hilinks --

      http://mysite.verizon.net/astronaut/vim/index.html#HILINKS

and, with the cursor atop a #define ..., you'll see something like:

SynStack: cInclude HltTrace: cInclude->Include->PreProc fg<white> bg<blue3>

on the bottom of the display (your fg/bg colors are liable to differ). The HltTrace shows you several highlighting names; if you change any of those you can override the colorization of the #include/#define/etc.

Read

  :he colors
  :he highlight

for more information on this.

If you want to do a pinpoint change for C files only, then you might want to do something like making a file (or appending to an already existing one)
  $HOME/.vim/ftplugin/c.vim

and putting a line such as

hi PreProc cterm=NONE gui=NONE ctermfg=cyan ctermbg=blue guifg=cyan guibg=blue

in there; change the colors to suit.

Regards,
Chip Campbell

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

Reply via email to