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
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.
curl https://raw.github.com/csexton/spacemanspiff.vim/master/colors/spacemanspiff.vim > ~/.vim/colors/spacemanspiff.vim
Or use your favorite vim plugin manager by pointing it to this repo.
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.
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.
024.966: sourcing ~/.vim/colors/Tomorrow-Night.vim 005.220: sourcing ~/.vim/colors/spacemanspiff.vim
Times 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.