Installing color schemes for Vim editor
Posted by ajay on June 24, 2006
If you are busy programming all the day and getting bored with the default color scheme of vim editor. You can install some color schemes for vim editor as you want and then you can switch between them.
for installing color schemes first you need to create two directories in your home directories [if these directories dont already exist]
[user@localhost.localadmin]mkdir ~/.vim [enter]
[user@localhost.localadmin]mkdir ~/.vim/colors [enter]
Thats it. Your pc configuration part is done. Now you will need the theme configuration files. You can download the latest color schemes and many old ones from here (official website of vim editor). There are many available themes to suit your mind and mood.
Now for each theme or I better call it a color scheme you will get a .vim file or an zipped archive which after extracting will produce lots of .vim files
now you have to copy all the files to the directory .vim/colors/ in your home directory.
For example, if you have downloaded a theme called matrix.vim, then -
[user@localhost.localadmin]mv matrix.vim ~/.vim/colors [enter]
Bingo, the colorscheme is installed, now whenever you are editing a file, you can change the colorscheme using
:colorscheme matrix.vim
You can install as many themes as you like by copying files into that directory.
Now if you want to make a theme your default theme, then you should add this command to your .vimrc -
colorscheme matrix
Here matrix is the name of the colorscheme.
You can also design a theme for vim editor yourself if you are interested. You can take a look at any existing colorscheme file and change the colors in the file to create a new scheme for yourself.
Any better ideas are always welcome. Happy Vimming.
Anurag said
Most themes arent that good for C++. Did you get a good looking one for a white background?
ajay said
Well .. not completely .. but you can try ocean deep .. it is a gud one
alex said
pyte is a good theme with a light (but not white) background.
VimInterest said
Where is the .vimrc file?
Yogesh said
vimrc location is…>
“/usr/share/vim/vim61/macros/vimrc”
patternexon said
Thanks, exactly what I was looking for.