Vim color scheme settings (change the vim Color Scheme)

Source: Internet
Author: User


Vim color scheme settings (Change vim color scheme) (1) After vim is installed, run the command whereis vim and you will see the returned result: vim: /usr/bin/vim/usr/share/man/man1/vim.1.gz note: /usr/share/vim is the shared data or setting solution provided by vim for users (2) create in your home directory. vimrcset tabstop = 4 set softtabstop = 4 set shiftwidth = 4 set autoindentset cindentset cinoptions = {0 s, t0, N-2, p2s, (03 s, =. 5 s,> 1 s, = 1 s,: 1 sset expandtab www.2cto.com (3) Add a color scheme first, check what comes with your system, from (1) run the ls-l/usr/share/vim/vim70/colors/command. You can see-rw-r -- 1 root 2588 blue. vim-rw-r -- 1 root 2809 2011-03-06 darkblue. vim-rw-r -- 1 root 548 2011-03-06 default. vim-rw-r -- 1 root 2399 2011-03-06 delek. vim-rw-r -- 1 root 2812 2011-03-06 desert. vim-rw-r -- 1 root 1666 2011-03-06 elflord. vim-rw-r -- 1 root 2476 2011-03-06 evening. vim-rw-r -- 1 root 3238 2011-03-06 koehler. vim-rw-r -- 1 root 2460 2011-03-06 morning. vim
-Rw-r -- 1 root 2006 2011-03-06 murphy. vim-rw-r -- 1 root 1037 2011-03-06 pablo. vim-rw-r -- 1 root 2673 2011-03-06 peachpuff. vim-rw-r -- 1 root 2174 README.txt-rw-r -- 1 root 1239 ron. vim-rw-r -- 1 root 2720 2011-03-06 shine. vim-rw-r -- 1 root 2419 2011-03-06 slate. vim-rw-r -- 1 root 1627 2011-03-06 torte. vim-rw-r -- 1 Root 1840 2011-03-06 zellner. vim www.2cto.com, so we know that the color scheme names include morning, evening, desert, etc. If we want to change the color scheme to evening, we only need. add a colorscheme evening line in vimrc. (4) If you think the color scheme is too small, you can download the color scheme from the external, here is a URL: http://vimcolorschemetest.googlecode.com/svn/colors/
You can download the tool wget and put the. vim file in the/usr/share/vim/vim70/colors/directory. Then change. vimrc to take effect.

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.