2 " Maintainer: Jani Nurminen <slinky@iki.fi>
3 " Last Change: $Id: zenburn.vim,v 2.2 2008/07/10 19:51:09 slinky Exp slinky $
4 " URL: http://slinky.imukuppi.org/zenburnpage/
7 " Nothing too fancy, just some alien fruit salad to keep you in the zone.
8 " This syntax file was designed to be used with dark environments and
9 " low light situations. Of course, if it works during a daybright office, go
12 " Owes heavily to other Vim color files! With special mentions
13 " to "BlackDust", "Camo" and "Desert".
15 " To install, copy to ~/.vim/colors directory. Then :colorscheme zenburn.
16 " See also :help syntax
19 " - Jani Nurminen - original Zenburn
20 " - Steve Hall & Cream posse - higher-contrast Visual selection
21 " - Kurt Maier - 256 color console coloring, low and high contrast toggle,
23 " - Charlie - spotted too bright StatusLine in non-high contrast mode
25 " CONFIGURABLE PARAMETERS:
27 " You can use the default (don't set any parameters), or you can
28 " set some parameters to tweak the Zenburn colours.
30 " * You can now set a darker background for bright environments. To activate, use:
31 " contrast Zenburn, use:
33 " let g:zenburn_high_Contrast = 1
35 " * To get more contrast to the Visual selection, use
37 " let g:zenburn_alternate_Visual = 1
39 " * To use alternate colouring for Error message, use
41 " let g:zenburn_alternate_Error = 1
43 " * The new default for Include is a duller orange. To use the original
44 " colouring for Include, use
46 " let g:zenburn_alternate_Include = 1
48 " * To turn the parameter(s) back to defaults, use UNLET:
50 " unlet g:zenburn_alternate_Include
52 " Setting to 0 won't work!
57 " - Visual alternate color is broken? Try GVim >= 7.0.66 if you have trouble
58 " - IME colouring (CursorIM)
62 if exists("syntax_on")
65 let g:colors_name="zenburn"
67 hi Boolean guifg=#dca3a3
68 hi Character guifg=#dca3a3 gui=bold
69 hi Comment guifg=#7f9f7f gui=italic
70 hi Conditional guifg=#f0dfaf gui=bold
71 hi Constant guifg=#dca3a3 gui=bold
72 hi Cursor guifg=#000d18 guibg=#8faf9f gui=bold
73 hi Debug guifg=#bca3a3 gui=bold
74 hi Define guifg=#ffcfaf gui=bold
75 hi Delimiter guifg=#8f8f8f
76 hi DiffAdd guifg=#709080 guibg=#313c36 gui=bold
77 hi DiffChange guibg=#333333
78 hi DiffDelete guifg=#333333 guibg=#464646
79 hi DiffText guifg=#ecbcbc guibg=#41363c gui=bold
80 hi Directory guifg=#dcdccc gui=bold
81 hi ErrorMsg guifg=#80d4aa guibg=#2f2f2f gui=bold
82 hi Exception guifg=#c3bf9f gui=bold
83 hi Float guifg=#c0bed1
84 hi FoldColumn guifg=#93b3a3 guibg=#3f4040
85 hi Folded guifg=#93b3a3 guibg=#3f4040
86 hi Function guifg=#efef8f
87 hi Identifier guifg=#efdcbc
88 hi IncSearch guibg=#f8f893 guifg=#385f38
89 hi Keyword guifg=#f0dfaf gui=bold
90 hi Label guifg=#dfcfaf gui=underline
91 hi LineNr guifg=#9fafaf guibg=#262626
92 hi Macro guifg=#ffcfaf gui=bold
93 hi ModeMsg guifg=#ffcfaf gui=none
94 hi MoreMsg guifg=#ffffff gui=bold
95 hi NonText guifg=#404040
96 hi Number guifg=#8cd0d3
97 hi Operator guifg=#f0efd0
98 hi PreCondit guifg=#dfaf8f gui=bold
99 hi PreProc guifg=#ffcfaf gui=bold
100 hi Question guifg=#ffffff gui=bold
101 hi Repeat guifg=#ffd7a7 gui=bold
102 hi Search guifg=#ffffe0 guibg=#284f28
103 hi SpecialChar guifg=#dca3a3 gui=bold
104 hi SpecialComment guifg=#82a282 gui=bold
105 hi Special guifg=#cfbfaf
106 hi SpecialKey guifg=#9ece9e
107 hi Statement guifg=#e3ceab gui=none
108 hi StatusLine guifg=#313633 guibg=#ccdc90
109 hi StatusLineNC guifg=#2e3330 guibg=#88b090
110 hi StorageClass guifg=#c3bf9f gui=bold
111 hi String guifg=#cc9393
112 hi Structure guifg=#efefaf gui=bold
113 hi Tag guifg=#e89393 gui=bold
114 hi Title guifg=#efefef gui=bold
115 hi Todo guifg=#dfdfdf guibg=bg gui=bold
116 hi Typedef guifg=#dfe4cf gui=bold
117 hi Type guifg=#dfdfbf gui=bold
118 hi Underlined guifg=#dcdccc gui=underline
119 hi VertSplit guifg=#2e3330 guibg=#688060
120 hi VisualNOS guifg=#333333 guibg=#f18c96 gui=bold,underline
121 hi WarningMsg guifg=#ffffff guibg=#333333 gui=bold
122 hi WildMenu guibg=#2c302d guifg=#cbecd0 gui=underline
124 hi SpellBad guisp=#bc6c4c guifg=#dc8c6c
125 hi SpellCap guisp=#6c6c9c guifg=#8c8cbc
126 hi SpellRare guisp=#bc6c9c guifg=#bc8cbc
127 hi SpellLocal guisp=#7cac7c guifg=#9ccc9c
131 hi Boolean ctermfg=181
132 hi Character ctermfg=181 cterm=bold
133 hi Comment ctermfg=108
134 hi Conditional ctermfg=223 cterm=bold
135 hi Constant ctermfg=181 cterm=bold
136 hi Cursor ctermfg=233 ctermbg=109 cterm=bold
137 hi Debug ctermfg=181 cterm=bold
138 hi Define ctermfg=223 cterm=bold
139 hi Delimiter ctermfg=245
140 hi DiffAdd ctermfg=66 ctermbg=237 cterm=bold
141 hi DiffChange ctermbg=236
142 hi DiffDelete ctermfg=236 ctermbg=238
143 hi DiffText ctermfg=217 ctermbg=237 cterm=bold
144 hi Directory ctermfg=188 cterm=bold
145 hi ErrorMsg ctermfg=115 ctermbg=236 cterm=bold
146 hi Exception ctermfg=249 cterm=bold
148 hi FoldColumn ctermfg=109 ctermbg=238
149 hi Folded ctermfg=109 ctermbg=238
150 hi Function ctermfg=228
151 hi Identifier ctermfg=223
152 hi IncSearch ctermbg=228 ctermfg=238
153 hi Keyword ctermfg=223 cterm=bold
154 hi Label ctermfg=187 cterm=underline
155 hi LineNr ctermfg=248 ctermbg=235
156 hi Macro ctermfg=223 cterm=bold
157 hi ModeMsg ctermfg=223 cterm=none
158 hi MoreMsg ctermfg=15 cterm=bold
159 hi NonText ctermfg=238
160 hi Number ctermfg=116
161 hi Operator ctermfg=230
162 hi PreCondit ctermfg=180 cterm=bold
163 hi PreProc ctermfg=223 cterm=bold
164 hi Question ctermfg=15 cterm=bold
165 hi Repeat ctermfg=223 cterm=bold
166 hi Search ctermfg=230 ctermbg=236
167 hi SpecialChar ctermfg=181 cterm=bold
168 hi SpecialComment ctermfg=108 cterm=bold
169 hi Special ctermfg=181
170 hi SpecialKey ctermfg=151
171 hi Statement ctermfg=187 ctermbg=234 cterm=none
172 hi StatusLine ctermfg=236 ctermbg=186
173 hi StatusLineNC ctermfg=235 ctermbg=108
174 hi StorageClass ctermfg=249 cterm=bold
175 hi String ctermfg=174
176 hi Structure ctermfg=229 cterm=bold
177 hi Tag ctermfg=181 cterm=bold
178 hi Title ctermfg=7 ctermbg=234 cterm=bold
179 hi Todo ctermfg=108 ctermbg=234 cterm=bold
180 hi Typedef ctermfg=253 cterm=bold
181 hi Type ctermfg=187 cterm=bold
182 hi Underlined ctermfg=188 ctermbg=234 cterm=bold
183 hi VertSplit ctermfg=236 ctermbg=65
184 hi VisualNOS ctermfg=236 ctermbg=210 cterm=bold
185 hi WarningMsg ctermfg=15 ctermbg=236 cterm=bold
186 hi WildMenu ctermbg=236 ctermfg=194 cterm=bold
187 if exists("g:zenburn_high_Contrast")
188 hi Normal ctermfg=188 ctermbg=234
190 hi Normal ctermfg=188 ctermbg=237
191 hi Cursor ctermbg=109
192 hi diffadd ctermbg=237
193 hi diffdelete ctermbg=238
194 hi difftext ctermbg=237
195 hi errormsg ctermbg=237
196 hi foldcolumn ctermbg=238
197 hi folded ctermbg=238
198 hi incsearch ctermbg=228
199 hi linenr ctermbg=238
200 hi search ctermbg=238
201 hi statement ctermbg=237
202 hi statusline ctermbg=144
203 hi statuslinenc ctermbg=108
206 hi underlined ctermbg=237
207 hi vertsplit ctermbg=65
208 hi visualnos ctermbg=210
209 hi warningmsg ctermbg=236
210 hi wildmenu ctermbg=236
214 if exists("g:zenburn_high_Contrast")
215 " use new darker background
216 hi Normal guifg=#dcdccc guibg=#1f1f1f
217 hi CursorLine guibg=#121212 gui=bold
218 hi Pmenu guibg=#242424 guifg=#ccccbc
219 hi PMenuSel guibg=#353a37 guifg=#ccdc90 gui=bold
220 hi PmenuSbar guibg=#2e3330 guifg=#000000
221 hi PMenuThumb guibg=#a0afa0 guifg=#040404
222 hi MatchParen guifg=#f0f0c0 guibg=#383838 gui=bold
223 hi SignColumn guifg=#9fafaf guibg=#181818 gui=bold
224 hi TabLineFill guifg=#cfcfaf guibg=#181818 gui=bold
225 hi TabLineSel guifg=#efefef guibg=#1c1c1b gui=bold
226 hi TabLine guifg=#b6bf98 guibg=#181818 gui=bold
227 hi CursorColumn guifg=#dcdccc guibg=#2b2b2b
229 " Original, lighter background
230 hi Normal guifg=#dcdccc guibg=#3f3f3f
231 hi CursorLine guibg=#434443
232 hi Pmenu guibg=#2c2e2e guifg=#9f9f9f
233 hi PMenuSel guibg=#242424 guifg=#d0d0a0 gui=bold
234 hi PmenuSbar guibg=#2e3330 guifg=#000000
235 hi PMenuThumb guibg=#a0afa0 guifg=#040404
236 hi MatchParen guifg=#b2b2a0 guibg=#2e2e2e gui=bold
237 hi SignColumn guifg=#9fafaf guibg=#343434 gui=bold
238 hi TabLineFill guifg=#cfcfaf guibg=#353535 gui=bold
239 hi TabLineSel guifg=#efefef guibg=#3a3a39 gui=bold
240 hi TabLine guifg=#b6bf98 guibg=#353535 gui=bold
241 hi CursorColumn guifg=#dcdccc guibg=#4f4f4f
245 if exists("g:zenburn_alternate_Visual")
246 " Visual with more contrast, thanks to Steve Hall & Cream posse
247 " gui=none fixes weird highlight problem in at least GVim 7.0.66, thanks to Kurt Maier
248 hi Visual guifg=#000000 guibg=#71d3b4 gui=none
249 hi VisualNOS guifg=#000000 guibg=#71d3b4 gui=none
252 hi Visual guifg=#233323 guibg=#71d3b4 gui=none
253 hi VisualNOS guifg=#233323 guibg=#71d3b4 gui=none
256 if exists("g:zenburn_alternate_Error")
257 " use a bit different Error
258 hi Error guifg=#ef9f9f guibg=#201010 gui=bold
261 hi Error guifg=#e37170 guibg=#332323 gui=none
264 if exists("g:zenburn_alternate_Include")
266 hi Include guifg=#ffcfaf gui=bold
268 " new, less contrasted one
269 hi Include guifg=#dfaf8f gui=bold
271 " TODO check for more obscure syntax groups that they're ok