Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

An easier way to write Vim color schemes

tree: acfe73d377

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 features
Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile Initial commit October 27, 2010
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 README.markdown Update usage in readme November 02, 2010
Octocat-spinner-32 Rakefile
Octocat-spinner-32 palette.gemspec
README.markdown

Palette

An easier way to write Vim color schemes

Install

Install with Rubygems:

gem install palette

Usage

From your terminal:

palette path/to/color_scheme

Syntax

vim_colors "sweet" do
  author "Josh Clayton"
  notes  "My really sweet theme"

  reset      true
  background :light

  Normal "222", "f8f8ff"

  Folded "808080", "ECECEC", :gui => "bold"
  link :vimFold, :FoldColumn, :to => :Folded
end

This color scheme would generate the following output:

" Vim color file
"   This file was generated by Palette
"   http://rubygems.org/gems/palette
"
" Author: Josh Clayton
" My really sweet theme
let colors_name="sweet"
hi clear
if version > 580
    if exists("syntax_on")
        syntax reset
    endif
endif
if has("gui_running")
    set background=light
endif
hi Normal guifg=#222222 ctermfg=235 guibg=#F8F8FF ctermbg=231
hi Folded guifg=#808080 ctermfg=244 guibg=#ECECEC ctermbg=255 gui=bold cterm=bold
hi link vimFold    Folded
hi link FoldColumn Folded

Author

Written by Josh Clayton.

Something went wrong with that request. Please try again.