How to install a Vim color scheme

In this tutorial, we will show you how to install a Vim editor color scheme named “distinguished“.

1. Default Color Scheme

Default syntax highlight in the “homebrew” profile terminal.

vim-default

2. Install a new Vim Color Scheme

2.1 Download a new Vim color scheme – “distinguished“. Extracts and move the downloaded *.vim file to this folder ~/.vim/colors/.


mv ~/Downloads/vim-distinguished-develop/colors/*.vim ~/.vim/colors/

P.S Create the folders if not exists.

2.2. Edit the vim ~/.vimrc file, enable the syntax highlight and set the colorscheme to “distinguished”.

~/.vimrc

syntax on
colorscheme distinguished

Done, when you start Vim editor next time, by default, syntax highlight is enabled and the “distinguished” color scheme will be used.

3. Test

3.1 Open a file with Vim editor, the new “distinguished” schema will be applied. See figure below :

vim-distinguished
Note
To test a color scheme, in Vim editor, switch to command mode, and type :colorscheme new_scheme. The “new_scheme” is the *.vim files in ~/.vim/colors/.

References

  1. Vim color scheme – distinguished
  2. 10 Vim color schemes you need to own

About the Author

author image
mkyong
Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter. If you like my tutorials, consider make a donation to these charities.

Comments

avatar
3 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
3 Comment authors
LucaGeovane85594Profi.Inti Recent comment authors
newest oldest most voted
Geovane85594
Guest
Geovane85594

thanks

Luca
Guest
Luca

Thanks bro

Profi.Inti
Guest
Profi.Inti

Great! Thanks.