Ⅰ. 插件描述
256 color-scheme for a capable terminalⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/calmar256-lightdark-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/calmar256-lightdark-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/calmar256-lightdark-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/calmar256-lightdark.vim
Ⅳ. 文档说明
It should be easy to tweak the colors,
just tweak the numbers based on this chart:
http://www.calmar.ws/vim/256-xterm-24bit-rgb-color-chart.html
or:
http://www.calmar.ws/vim/terminalcolors.py
also see:
:help hl-<highlight-group> and
:help highlight-groups
calmar256{light,dark}.vim generates the same color for you gvim, like in your 256 color terminal.
Screenshot:
http://www.calmar.ws/vim/calmar256-dark.vim.png
http://www.calmar.ws/vim/calmar256-light.vim.png
(Note: you may need a proper $TERM variable set, so that termcap/terminfo
knows it's a 256 color terminal. E.g. TERM=xterm-256color in xterm's case. but
especially set t_Co=256 in your .vimrc so vim knows about what you want.)
May also have a look at:
http://www.calmar.ws/vim/ (paragraph: Vim and Colors)
The file themselves (very lastest version):
http://www.calmar.ws/dotfiles/dotfiledir/calmar256-dark.vim
http://www.calmar.ws/dotfiles/dotfiledir/calmar256-light.vim
(feel free to upload improved versions etc, colors or code...)