Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to test color setup in Vim

📅 2015-Mar-18 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ colors, vim ⬩ 📚 Archive

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

© 2023 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘📧