Vim Change color scheme

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.