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]
[email@example.com]mkdir ~/.vim [enter]
[firstname.lastname@example.org]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 –
[email@example.com]mv matrix.vim ~/.vim/colors [enter]
Bingo, the colorscheme is installed, now whenever you are editing a file, you can change the colorscheme using
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 –
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.