GithubHelp home page GithubHelp logo

spacemanspiff.vim's Introduction

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!

Terminal.app Screeshot

Install

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.

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.

Terminal Screeshot

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.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.

spacemanspiff.vim's People

Contributors

csexton avatar

Stargazers

 avatar Jon Keam avatar Dan Catalano avatar Yuri Dias avatar Tom Auty avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.