Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to test color setup in Vim

📅 2015-Mar-18 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

[caption id="attachment_6360" align="aligncenter" width="576"][Color test of Vim in GNOME Terminal](https://codeyarns.files.wordpress.com/2015/03/20150318_colortest.png) Color test of Vim in GNOME Terminal[/caption]

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