Get rid of illegible vim syntax highlighting

I often wondered why the default syntax highlighting in vim is almost illegible (e.g., dark blue on black background).

The reason is that a syntax highlighting in vim defines two sets of colors, one for light background and one for dark background.

To find out your current color scheme, type:

To (temporarily) switch to the color scheme for dark background use:

Vice versa, for light background, use:

To make these changes permanent, add the command without colon (set background=[dark|light]) to ~/.vimrc.

Leave a Reply

Your email address will not be published. Required fields are marked *

Please type the characters of this captcha image in the input box

Please type the characters of this captcha image in the input box