Linux under VIM and terminal color __linux

Source: Internet
Author: User
Tags set background git clone

Source: http://www.cnblogs.com/xia520pi/p/3682348.html

Solarized is a color scheme that includes light and dark colors, which can make a clear contrast. Apply to many applications to make your application look more beautiful. Look at this color: Gossip universe, pleasing, high-end atmospheric grade.

Website address: http://ethanschoonover.com/solarized 2, Vim

Just download and place the color file Solarized.vim for vim in the ~/.vim/colors directory.

And then set the ". VIMRC"

Syntax enable

Syntax on

Set Nu

Set t_co=256

Set Background=dark

ColorScheme solarized

Syntax highlighting needs to be opened. Backgroud I like dark better. can also be set to light. Note: This configuration is good, under the Gvim can be perfectly displayed, but the terminal under the use of vim, color is still very bad. Inconsistent with expectations. That is because the terminal does not support 256 colors by default.  Open vim. BARSHRC and add "Export Term=xterm-256color". 3, Terminal

Terminal terminal can also be matched in this way. First install Git:sudo apt-get install Git-core then to set up solarized theme for GNU ls, otherwise under the Terminal LS What is gray, is to give solarized added directory ls color work Yes:

git clone git://github.com/seebi/dircolors-solarized.git

Dircolor-solarized have a few color matching, you can go to the project to see the description, I still choose the dark line dark256:

CP ~/dircolors-solarized/dircolors.256dark ~/.dircolors

Eval ' dircolors dircolors '

Set Terminal support 256 colors, vim. BARSHRC and add export Term=xterm-256color (for reasons mentioned above). Next download the solarized gnome-terminal color:

git clone git://github.com/sigurdga/gnome-terminal-colors-solarized.git

CD gnome-terminal-colors-solarized to this directory to run the color script:

./set_dark.sh or./set_light.sh, you can switch between dark and light-colored freely. Or./solarize can also be switched, such as execution once is dark, once again light. So alternately.

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.