Vim Color Scheme¶
June 20, 2019
The default color scheme for vim
is not very friendly for comments since it has a dark blue color. You can change the color scheme with the following steps:
-
Create an folder
.vim
in your home directory:mkdir ~/.vim
-
Checkout the github repository for color schemes:
git clone https://github.com/flazz/vim-colorschemes.git ~/.vim
-
Create config file
.vimrc
in your home directory. The color schemewombat
is used in the example below.echo "colorscheme wombat" >> ~/.vimrc
If you do not like the color scheme wombat
, you can use any other color scheme you like. To find all color schemes available, run:
ls ~/.vim/colors
A simple count shows that there is 972
different color schemes available for you to choose.
$ ls -l ~/.vim/colors | wc -l
972