Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 58 lines (41 sloc) 1.146 kB
86f047b @joshuaclayton Core
authored
1 # Palette
2
3 ## An easier way to write Vim color schemes
4
5 ## Install
6
7 Install with Rubygems:
8
9 gem install palette
10
11 ## Usage
12
d419215 @joshuaclayton Update usage in readme
authored
13 From your terminal:
14
15 palette path/to/color_scheme
86f047b @joshuaclayton Core
authored
16
17 ## Syntax
18
19 vim_colors "sweet" do
20 author "Josh Clayton"
21 notes "My really sweet theme"
22
23 reset true
24 background :light
25
26 Normal "222", "f8f8ff"
27
28 Folded "808080", "ECECEC", :gui => "bold"
29 link :vimFold, :FoldColumn, :to => :Folded
30 end
31
32 This color scheme would generate the following output:
33
34 " Vim color file
35 " This file was generated by Palette
36 " http://rubygems.org/gems/palette
37 "
38 " Author: Josh Clayton
39 " My really sweet theme
40 let colors_name="sweet"
41 hi clear
42 if version > 580
43 if exists("syntax_on")
44 syntax reset
45 endif
46 endif
47 if has("gui_running")
48 set background=light
49 endif
50 hi Normal guifg=#222222 ctermfg=235 guibg=#F8F8FF ctermbg=231
51 hi Folded guifg=#808080 ctermfg=244 guibg=#ECECEC ctermbg=255 gui=bold cterm=bold
52 hi link vimFold Folded
53 hi link FoldColumn Folded
54
55 ## Author
56
57 Written by Josh Clayton.
Something went wrong with that request. Please try again.