Vim can also display in other colors instead of just black and white text and background combo. It can be done by changing the color scheme.

To change the color scheme, follow any of the following methods;

Command mode (temporary)

While in Vim, press the ESC key to get into command mode. Typing the following command followed by Enter will change the color scheme to blue.

:colorscheme blue

Press the TAB button to cycle through the available color schemes.

The following color schemes are available;

blue, darkblue, default, delek, desert, elflord, evening, koehler, morning, murphy, pablo, peachpuff, ron, shine, slate, torte, zellner

Edit configuration file (permanent)

To make the setting permanent, add the following line to /etc/vimrc or ~/.vimrc

colorscheme blue
Discuss the article:

Comment anonymously. Login not required.