vim set solarized color matching

Recently learning to use VIM. I choose the Solarized colorway. I believe many people are also using it.

Official website address:

http://ethanschoonover.com/solarized

Look at this color scheme: gossip, pleasing to the eye, and high-end atmosphere.

 

How to use it?

 

Vim

Just download and place the solarized.vim color palette file for VIM in the ~/.vim/colors directory.

Then set ~/.vimrc

Press Ctrl+C to copy the code
Press Ctrl+C to copy the code

Syntax highlighting needs to be turned on. backgroud I prefer dark. Can also be set to light. Please see the gossip chart for the difference.

Note: After this configuration, it can be displayed perfectly under gvim, but when using vim under the terminal, the color is still very bad. Not as expected. That's because the terminal doesn't support 256 colors by default.

cd

vim .barshrc and add 

 

export TERM=xterm-256color

 

Should be a small success. A restart may be required to take effect.

 

Terminal

Terminal Terminal can also be configured in this way.

First install git:sudo apt-get install git-core

Then you need to set the  solarized theme for GNU ls , otherwise the ls under Terminal will be gray, that is to add the color function of the directory ls to Solarized:

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

dircolor-solarized has several colors, you can go to the project to see the description, I still choose dark256:

cp ~/dircolors-solarized/dircolors.256dark ~/.dircolors
eval 'dircolors .dircolors'

Set Terminal to support 256 colors vim .barshrc and add  export TERM=xterm-256color(原因上面已经提到).

Next download Solarized's Gnome-Terminal color scheme:

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

cd gnome-terminal-colors-solarized Run the color matching script in this directory:

./set_dark.sh Or ./set_light.sh, you can switch between dark and light colors freely.

Or ./solarize can also be switched, such as dark once executed, and light again. so alternate.

 

---End---

 

 Reprinted, thanks http://www.cnblogs.com/RandyXu/p/3279090.html

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324450997&siteId=291194637