Ⅰ. 插件描述
vim colorschemeⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'csexton/spacemanspiff-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'csexton/spacemanspiff-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'csexton/spacemanspiff-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/csexton/spacemanspiff.vim
Ⅳ. 文档说明
Why?
I am a bit obsessive about my vim startup time. Turns out that computing hundreds of colors at startup time can take a few CPU cycles. So I put together this project to pre-compile my colorscheme to nothing but simple highlight commands.
This is achieved by a simple Rakefile that will expand a bit of YAML into a template. It does the computation once so we don't do it every single time we start our editor.
Screeshot!

Install
curl https://raw.github.com/csexton/spacemanspiff.vim/master/colors/spacemanspiff.vim > ~/.vim/colors/spacemanspiff.vimOr use your favorite vim plugin manager by pointing it to this repo.
Terminal?
Like Solarized, Tomorrow and Base16, this requires you to change your terminal colors. Unlike those projects there is no fall back. If you don't set the terminal colors it will look pretty horrid.
Settings for iTerm can be grabbed from the Spaceman Spiff.itermcolors directory in this repo, but other terminals you can will need to edit the preferences for your terminal. The hex values for the ANSI Colors can be found in colors.yml.

Building
Edit src/colors.yml and run rake and the colorscheme will be regenerated and placed in colors. Feel free to modify the template or the colors yaml, but you should not edit the generated file directly.
Benchmarks?
024.966: sourcing ~/.vim/colors/Tomorrow-Night.vim
005.220: sourcing ~/.vim/colors/spacemanspiff.vimTimes in msecs, yo.
This looks familiar!
My colors are based off of the awesome Tomorrow-Night colorscheme. I've made a few tweaks to suit my personal preference.