Monday, August 8, 2011

Changing vi / vim color scheme in CentOS 6

I just did a minimal desktop install of CentOS 6 and did not like the default vi / vim color scheme.
Here is where the color schemes are located:

In the above example, vim72 is the version of vim, yours could be different.
First you have to copy /etc/vimrc to your home directory and rename to .vimrc
Now edit .vimrc that is in your home directory and add the following,
:color <yourcolorscheme>

So instead of <yourcolorscheme> you would put the color scheme you want from

It would have colors scheme files like this:
blue.vim, delek.vim, desert.vim, evening.vim etc. etc.

So when you add it to your .vimrc you don't need the .vim part. Just do:
:color blue


  1. Great blog! All posts have something to learn. Your work is very good and i appreciate you and hoping for some more informative posts. thanks