Ⅰ. 插件描述
A variable contrast color scheme for terminal loversⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'sstallion/vim-wtf'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'sstallion/vim-wtf'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'sstallion/vim-wtf'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/sstallion/vim-wtf
Ⅳ. 文档说明
# Whiskey Tango Focus
Whiskey Tango Focus (aka wtf) is a dark color scheme for Vim that strives for
consistency between terminal and GUI applications with graceful degradation for
256, 16, and 8 color terminals. Normal terminals are also supported, though with
significantly diminished returns.
Central to this color scheme is the role of contrast. The desired effect is to
bring important syntactical elements to the forefront, while allowing more
mundane elements, such as line numbers and the cursor line, to fade into the
background.
The color palette is based on the Tango
theme provided by freedesktop.org, modified to
match the iTerm2 Dark Tango theme.
<p align="center">
<img src="https://raw.githubusercontent.com/sstallion/vim-wtf/master/screenshot.png"/></p>
A compatible color scheme for lightline.vim
can be found here.
Installation
This plugin is compatible with several popular plugin managers:
Pathogen
git clone git://github.com/sstallion/vim-wtf.git ~/.vim/bundle/vim-wtf
Vundle
Add the following to your .vimrc and execute the :PluginInstall command:
Plugin 'sstallion/vim-wtf'
NeoBundle
Add the following to your .vimrc and execute the :NeoBundleInstall command:
NeoBundle 'sstallion/vim-wtf'
vim-plug
Add the following to your .vimrc and execute the :PlugInstall command:
Plug 'sstallion/vim-wtf'
Configuration
Like many other color schemes, wtf works with the underlying terminal color
- In order for colors to display correctly, the terminal must be
- with a dark Tango theme with the appropriate number of colors.
To enable this color scheme, simply add the following to your .vimrc:
colorscheme wtf
By default, the GUI will use the same colors as the terminal. If you wish to use
the classic Tango color palette instead, add the following to your .vimrc
before calling the :colorscheme command:
let g:wtf_pedantic_guicolors = 1
Acknowledgement
Thanks to Ben Ridder for testing changes,
providing great feedback, and stoically dealing with my penchant for amended
commits.