Ⅰ. 插件描述
A dark color scheme for VimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'w0ng/hybrid-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'w0ng/hybrid-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'w0ng/hybrid-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/w0ng/vim-hybrid
Ⅳ. 文档说明
# hybrid.vim
A dark colour scheme for Vim that combines the:
- Default palette from Tomorrow-Night.
- Reduced contrast palette from Codecademy's
online editor. - Syntax group highlighting scheme from Jellybeans
- Vimscript from Solarized
Updates
05/01/2016: Replaced
let g:hybrid_use_Xresources = 1
in favour of __`letg:hybrid_custom_term_colors = 1`__
- 05/01/2016: Added
let g:hybrid_reduced_contrast = 1
Requirements
- gVim 7.3+ on Linux, Mac and Windows.
- Vim 7.3+ on Linux and Mac, using a terminal that supports 256 colours.
Installation
Copy colors/hybrid.vim to:
~/.vim/colors/hybrid.vim
or alternatively, use a plugin manger such as
[vim-plug](https://github.com/junegunn/vim-plug),
[NeoBundle](https://github.com/Shougo/neobundle.vim),
[Vundle](https://github.com/gmarik/Vundle.vim), or
[Pathogen](https://github.com/tpope/vim-pathogen).
Add to ~/.vimrc:
set background=dark colorscheme hybrid
Define custom terminal colours (recommended)
Due to the limited 256 palette, colours in Vim and gVim will still be slightly
different.
In order to have Vim use the same colours as gVim (the way this colour scheme
is intended) define the basic 16 colours in your terminal.
Linux users: rxvt-unicode, xterm
- Add the default palette to ~/.Xresources:
https://gist.github.com/3278077
or alternatively, add the reduced contrast palette to ~/.Xresources:
Add to ~/.vimrc:
let g:hybrid_custom_term_colors = 1 let g:hybrid_reduced_contrast = 1 " Remove this line if using the default palette. colorscheme hybrid
OSX users: iTerm
- Import the default colour preset into iTerm:
https://raw.githubusercontent.com/w0ng/dotfiles/master/iterm2/hybrid.itermcolors
or alternatively, import the reduced contrast color preset into iTerm:
https://raw.githubusercontent.com/w0ng/dotfiles/master/iterm2/hybrid-reduced-contrast.itermcolors
Add to ~/.vimrc:
let g:hybrid_custom_term_colors = 1 let g:hybrid_reduced_contrast = 1 " Remove this line if using the default palette. colorscheme hybrid