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:/usr/share/vim/vim72/colors

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/usr/share/vim/vim72/colors