Objective
Vim has been used for 4 of years, has always felt that vim default color scheme is difficult to see, but it is not the mind to modify it.
But recently in the study of Python, using a black background, but the code's comments are dark blue, see two eyes sour, really can't stand, decided to modify the Vim color scheme.
Environment description
System version:
- :/usr/share/vim/vim73/colors$ uname -3.2 . 0-4-686-pae #13.2. 2 i686 gnu/linux
Vim version:
Vim is installed under Debian directly with the aptitude install VIM command, so the default color scheme directory is "/usr/share/vim/vim73/colors". Different system vim color scheme directory may be a little different, we can according to the actual situation of your system to modify.
[Email protected] Mon Oct - -: -: -/usr/share/vim/vim73/colors$ Apt-show-versions |grepVimvim/wheezy uptodate2:7.3.547-7Vim-common/wheezy uptodate2:7.3.547-7Vim-runtime/wheezy uptodate2:7.3.547-7Vim-tiny/wheezy uptodate2:7.3.547-7
Change the color scheme
In the system's/usr/share/vim/vim73/colors has the VIM editor to provide the color configuration scheme, directly appends the color scheme to the VIMRC can change the color scheme. If the original. VIMRC already has a color scheme, you can modify the name of the color scheme.
- : £/usr/share/vim/vim73/ colors$ lsblue.vim Delek.vim evening.vim murphy.vim python.vim shine.vim zellner.vimdarkblue.vim Desert.vim koehler.vim pablo.vim README.txt slate.vimdefault.vim elflord.vim Morning.vim peachpuff.vim ron.vim torte.vim
Root User modification:
For example, I personally prefer to ron.vim this color scheme, directly using the following commands can be modified (note: Just add a color theme name, do not need to add the. Vim):
- page:/etc/vim$ echo"colorscheme Ron" >>/ETC/VIM/VIMRC
General User modification:
Ulric - page:~$ echo"colorscheme Ron " >> ~/.VIMRC
In addition, desert this color theme is also very good, do not like Ron theme friends can try.
Create your own color scheme
If the system provides a color scheme that you do not like, you can modify the content of the color scheme according to your own needs, and the save takes effect.
Vim Change color scheme