Posts Change Vim Color Scheme
Post
Cancel

Change Vim Color Scheme

Let’s take a look of the default vim color scheme first, using /etc/vimrc as example.
vim color scheme

We can see that a dim background with a dark color wording can make reading quite difficult sometimes, luckily there are seventeen vim color schemes that we can choose from to make our life easier. Those config files are located at /usr/share/vim/vim74/colors.
vim color scheme

There are two location in the system where you can set/change the color scheme you want. To change globally, meaning that the change will apply to all users in the system, /etc/vimrc is the file to modified. For only certain user’s color scheme, for example john, then /home/john/.vimrc is the file you modify. For simplicity, I am just going to go globally.
vim color scheme

All you have to do is add colorscheme choiceofcolor or colo choiceofcolor at the bottom of the file. For example, our first choice, blue.
vim color scheme

Then vim /etc/vimrc again to see the change of color and wow.. blue seem not like a good choice!
vim color scheme

So, that’s it! Now you just have to try another sixteen times, which is exactly what I did… To save your time, I have all the result below so you can just look and pick your favorite one! Use the picked color scheme to try on more files is recommended.

darkblue

vim color scheme

default

vim color scheme

delek

vim color scheme

desert

vim color scheme

elflord

vim color scheme

evening

vim color scheme

koehler

vim color scheme

morning

vim color scheme

murphy

vim color scheme

pablo

vim color scheme

peachpuff

vim color scheme

ron

vim color scheme

shine

vim color scheme

slate

vim color scheme

torte

vim color scheme

zellner

vim color scheme

Alright! That’s preview for all the color schemes. I guess I am going to go with koehler for now and if I can’t get used to it, then will change to some other scheme. So what’s your choice?

REFERENCES:
How to set and use a vim color scheme

This post is licensed under CC BY 4.0 by the author.