Change font color for comments in vim

xralf picture xralf · Apr 29, 2011 · Viewed 84.5k times · Source

I'd like to change the default font color for comments which is dark blue to slightly yellow color. It is difficult to read on the black background. Could you advise me how to change only this one color? I'm satisfied with the other colors.

I'm using xfce4-terminal (not gvim with GUI).

So far, I have done the settings in ~/.profile file according to this link as follows

if [ -e /usr/share/terminfo/x/xterm-256color ]; then
        export TERM='xterm-256color'
else
        export TERM='xterm-color'
fi

and

set t_Co=256

in ~/.vimrc

thank you

Answer

mike3996 picture mike3996 · May 23, 2011

Most well-behaving colorschemes will respect the background setting:

set background=dark

would change the color of comments from dark blue to light blue, when using the default colorscheme.