How to test color setup in Vim

Color test of Vim in GNOME Terminal
Color test of Vim in GNOME Terminal

You can quickly test the color setup of Vim by using a Vimscript file that ships along with it. This can be useful to determine if all the default background and foreground combinations in Vim are being rendered correctly for your Vim setup and terminal.

To run this test, type :runtime syntax/colortest.vim. You should be able to see text rendered in various background-foreground combinations, like shown above. There are 46 pairs of background-foreground colors that are displayed on 46 lines (lines 8 to 53).

If you can see most of these color combinations correctly and read the text displayed in color, then your color setup should be fine. Else you need to investigate what setting in your terminal or in your Vim is rendering colors incorrectly.

Tried with: Vim 7.4, GNOME Terminal 3.6.2 and Ubuntu 14.04

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s