[TriLUG] VIM Question

Scott Chilcote scottchilcote at earthlink.net
Tue Mar 4 15:12:19 EST 2003


Nick Goldwater wrote:
> Has anyone else noticed that by default VIM under SuSE does not display
> colors?
> 
> Is there an easy way to enable this?
> 
> Any help is much appreciated.
> 
> Nick

In the spirit of leaving no help unstated, here's what you add to .vimrc 
if you're not thrilled about any of the colors... Which are listed in
/etc/X11R6/lib/X11/rgb.txt:

highlight Comment ctermfg=cyan guifg=cyan
highlight Constant ctermfg=DarkRed guifg=Magenta
highlight Special ctermfg=DarkMagenta guifg=SlateBlue
highlight Identifier ctermfg=DarkCyan guifg=DarkCyan
highlight Statement ctermfg=Brown gui=bold guifg=Brown
highlight PreProc ctermfg=DarkMagenta guifg=Purple
highlight Type ctermfg=DarkGreen guifg=SeaGreen gui=bold
highlight Ignore guifg=bg

I changed the comment color in this list to be a lighter shade of blue. 
  The default one just about disappears into a dark background.

Enjoy...

--
Scott C.





More information about the TriLUG mailing list