[TriLUG] VIM Question

Chris MacLeod stick at miscellaneous.net
Tue Mar 4 22:03:03 EST 2003


you can also add:
set background=dark (or light)
to your .vimrc rather than resetting a whole bunch of colors
this setting will make everything readable on a dark background
and if you use gvim you can put background=light into your .gvimrc
and have it very readable on a light background.

On Tue, Mar 04, 2003 at 03:12:19PM -0500, Scott Chilcote wrote:
> 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.
> 
> 
> _______________________________________________
> TriLUG mailing list
>    http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ:
>    http://www.trilug.org/~lovelace/faq/TriLUG-faq.html
> 

-- 
http://stick.miscellaneous.net
Chris MacLeod



More information about the TriLUG mailing list