Change syntax color in vim?

unholysampler picture unholysampler · Dec 11, 2009 · Viewed 32.8k times · Source

I have syntax highlighting on, but comments are set to dark blue. This hard for me to read against a black terminal. How do I change it so that the comments are colored green instead?

Answer

sth picture sth · Dec 11, 2009

Probably you just need to tell vim that you have a dark background:

:set background=dark

This should change the highlighting to something better readable.