]>
Commit | Line | Data |
---|---|---|
551714b7 | 1 | |
0d23b6e5 BB |
2 | " Vim color file |
3 | " | |
4 | " Author: Tomas Restrepo <tomas@winterdom.com> | |
5 | " | |
6 | " Note: Based on the monokai theme for textmate | |
7 | " by Wimer Hazenberg and its darker variant | |
8 | " by Hamish Stuart Macpherson | |
9 | " | |
10 | ||
11 | hi clear | |
12 | ||
13 | set background=dark | |
14 | if version > 580 | |
15 | " no guarantees for version 5.8 and below, but this makes it stop | |
16 | " complaining | |
17 | hi clear | |
18 | if exists("syntax_on") | |
19 | syntax reset | |
20 | endif | |
21 | endif | |
22 | let g:colors_name="molokai" | |
23 | ||
24 | if exists("g:molokai_original") | |
25 | let s:molokai_original = g:molokai_original | |
26 | else | |
27 | let s:molokai_original = 0 | |
28 | endif | |
29 | ||
30 | ||
31 | hi Boolean guifg=#AE81FF | |
32 | hi Character guifg=#E6DB74 | |
33 | hi Number guifg=#AE81FF | |
34 | hi String guifg=#E6DB74 | |
35 | hi Conditional guifg=#F92672 gui=bold | |
36 | hi Constant guifg=#AE81FF gui=bold | |
37 | hi Cursor guifg=#000000 guibg=#F8F8F0 | |
38 | hi Debug guifg=#BCA3A3 gui=bold | |
39 | hi Define guifg=#66D9EF | |
40 | hi Delimiter guifg=#8F8F8F | |
41 | hi DiffAdd guibg=#13354A | |
42 | hi DiffChange guifg=#89807D guibg=#4C4745 | |
43 | hi DiffDelete guifg=#960050 guibg=#1E0010 | |
44 | hi DiffText guibg=#4C4745 gui=italic,bold | |
45 | ||
46 | hi Directory guifg=#A6E22E gui=bold | |
47 | hi Error guifg=#960050 guibg=#1E0010 | |
48 | hi ErrorMsg guifg=#F92672 guibg=#232526 gui=bold | |
49 | hi Exception guifg=#A6E22E gui=bold | |
50 | hi Float guifg=#AE81FF | |
51 | hi FoldColumn guifg=#465457 guibg=#000000 | |
52 | hi Folded guifg=#465457 guibg=#000000 | |
53 | hi Function guifg=#A6E22E | |
54 | hi Identifier guifg=#FD971F | |
55 | hi Ignore guifg=#808080 guibg=bg | |
56 | hi IncSearch guifg=#C4BE89 guibg=#000000 | |
57 | ||
58 | hi Keyword guifg=#F92672 gui=bold | |
59 | hi Label guifg=#E6DB74 gui=none | |
60 | hi Macro guifg=#C4BE89 gui=italic | |
61 | hi SpecialKey guifg=#66D9EF gui=italic | |
62 | ||
63 | hi MatchParen guifg=#000000 guibg=#FD971F gui=bold | |
64 | hi ModeMsg guifg=#E6DB74 | |
65 | hi MoreMsg guifg=#E6DB74 | |
66 | hi Operator guifg=#F92672 | |
67 | ||
68 | " complete menu | |
69 | hi Pmenu guifg=#66D9EF guibg=#000000 | |
70 | hi PmenuSel guibg=#808080 | |
71 | hi PmenuSbar guibg=#080808 | |
72 | hi PmenuThumb guifg=#66D9EF | |
73 | ||
74 | hi PreCondit guifg=#A6E22E gui=bold | |
75 | hi PreProc guifg=#A6E22E | |
76 | hi Question guifg=#66D9EF | |
77 | hi Repeat guifg=#F92672 gui=bold | |
78 | hi Search guifg=#FFFFFF guibg=#455354 | |
551714b7 | 79 | " marks |
0d23b6e5 BB |
80 | hi SignColumn guifg=#A6E22E guibg=#232526 |
81 | hi SpecialChar guifg=#F92672 gui=bold | |
551714b7 | 82 | hi SpecialComment guifg=#7E8E91 gui=bold |
0d23b6e5 | 83 | hi Special guifg=#66D9EF guibg=bg gui=italic |
0d23b6e5 BB |
84 | if has("spell") |
85 | hi SpellBad guisp=#FF0000 gui=undercurl | |
86 | hi SpellCap guisp=#7070F0 gui=undercurl | |
87 | hi SpellLocal guisp=#70F0F0 gui=undercurl | |
88 | hi SpellRare guisp=#FFFFFF gui=undercurl | |
89 | endif | |
90 | hi Statement guifg=#F92672 gui=bold | |
91 | hi StatusLine guifg=#455354 guibg=fg | |
92 | hi StatusLineNC guifg=#808080 guibg=#080808 | |
93 | hi StorageClass guifg=#FD971F gui=italic | |
94 | hi Structure guifg=#66D9EF | |
95 | hi Tag guifg=#F92672 gui=italic | |
96 | hi Title guifg=#ef5939 | |
97 | hi Todo guifg=#FFFFFF guibg=bg gui=bold | |
98 | ||
99 | hi Typedef guifg=#66D9EF | |
100 | hi Type guifg=#66D9EF gui=none | |
101 | hi Underlined guifg=#808080 gui=underline | |
102 | ||
103 | hi VertSplit guifg=#808080 guibg=#080808 gui=bold | |
104 | hi VisualNOS guibg=#403D3D | |
105 | hi Visual guibg=#403D3D | |
106 | hi WarningMsg guifg=#FFFFFF guibg=#333333 gui=bold | |
107 | hi WildMenu guifg=#66D9EF guibg=#000000 | |
108 | ||
109 | if s:molokai_original == 1 | |
110 | hi Normal guifg=#F8F8F2 guibg=#272822 | |
111 | hi Comment guifg=#75715E | |
112 | hi CursorLine guibg=#3E3D32 | |
113 | hi CursorColumn guibg=#3E3D32 | |
551714b7 | 114 | hi ColorColumn guibg=#3B3A32 |
0d23b6e5 | 115 | hi LineNr guifg=#BCBCBC guibg=#3B3A32 |
551714b7 BB |
116 | hi NonText guifg=#75715E |
117 | hi SpecialKey guifg=#75715E | |
0d23b6e5 BB |
118 | else |
119 | hi Normal guifg=#F8F8F2 guibg=#1B1D1E | |
551714b7 | 120 | hi Comment guifg=#7E8E91 |
0d23b6e5 BB |
121 | hi CursorLine guibg=#293739 |
122 | hi CursorColumn guibg=#293739 | |
551714b7 BB |
123 | hi ColorColumn guibg=#232526 |
124 | hi LineNr guifg=#465457 guibg=#232526 | |
125 | hi NonText guifg=#465457 | |
126 | hi SpecialKey guifg=#465457 | |
0d23b6e5 BB |
127 | end |
128 | ||
129 | " | |
130 | " Support for 256-color terminal | |
131 | " | |
132 | if &t_Co > 255 | |
551714b7 BB |
133 | if s:molokai_original == 1 |
134 | hi Normal ctermbg=234 | |
135 | hi CursorLine ctermbg=235 cterm=none | |
136 | else | |
137 | hi Normal ctermfg=252 | |
138 | hi CursorLine ctermbg=234 cterm=none | |
139 | endif | |
0d23b6e5 BB |
140 | hi Boolean ctermfg=135 |
141 | hi Character ctermfg=144 | |
142 | hi Number ctermfg=135 | |
143 | hi String ctermfg=144 | |
144 | hi Conditional ctermfg=161 cterm=bold | |
145 | hi Constant ctermfg=135 cterm=bold | |
146 | hi Cursor ctermfg=16 ctermbg=253 | |
147 | hi Debug ctermfg=225 cterm=bold | |
148 | hi Define ctermfg=81 | |
149 | hi Delimiter ctermfg=241 | |
150 | ||
151 | hi DiffAdd ctermbg=24 | |
152 | hi DiffChange ctermfg=181 ctermbg=239 | |
153 | hi DiffDelete ctermfg=162 ctermbg=53 | |
154 | hi DiffText ctermbg=102 cterm=bold | |
155 | ||
156 | hi Directory ctermfg=118 cterm=bold | |
157 | hi Error ctermfg=219 ctermbg=89 | |
158 | hi ErrorMsg ctermfg=199 ctermbg=16 cterm=bold | |
159 | hi Exception ctermfg=118 cterm=bold | |
160 | hi Float ctermfg=135 | |
161 | hi FoldColumn ctermfg=67 ctermbg=16 | |
162 | hi Folded ctermfg=67 ctermbg=16 | |
163 | hi Function ctermfg=118 | |
551714b7 | 164 | hi Identifier ctermfg=208 cterm=none |
0d23b6e5 BB |
165 | hi Ignore ctermfg=244 ctermbg=232 |
166 | hi IncSearch ctermfg=193 ctermbg=16 | |
167 | ||
551714b7 | 168 | hi keyword ctermfg=161 cterm=bold |
0d23b6e5 BB |
169 | hi Label ctermfg=229 cterm=none |
170 | hi Macro ctermfg=193 | |
171 | hi SpecialKey ctermfg=81 | |
172 | ||
173 | hi MatchParen ctermfg=16 ctermbg=208 cterm=bold | |
174 | hi ModeMsg ctermfg=229 | |
175 | hi MoreMsg ctermfg=229 | |
176 | hi Operator ctermfg=161 | |
177 | ||
178 | " complete menu | |
179 | hi Pmenu ctermfg=81 ctermbg=16 | |
180 | hi PmenuSel ctermbg=244 | |
181 | hi PmenuSbar ctermbg=232 | |
182 | hi PmenuThumb ctermfg=81 | |
183 | ||
184 | hi PreCondit ctermfg=118 cterm=bold | |
185 | hi PreProc ctermfg=118 | |
186 | hi Question ctermfg=81 | |
187 | hi Repeat ctermfg=161 cterm=bold | |
188 | hi Search ctermfg=253 ctermbg=66 | |
189 | ||
190 | " marks column | |
191 | hi SignColumn ctermfg=118 ctermbg=235 | |
192 | hi SpecialChar ctermfg=161 cterm=bold | |
193 | hi SpecialComment ctermfg=245 cterm=bold | |
551714b7 BB |
194 | hi Special ctermfg=81 |
195 | if has("spell") | |
196 | hi SpellBad ctermbg=52 | |
197 | hi SpellCap ctermbg=17 | |
198 | hi SpellLocal ctermbg=17 | |
199 | hi SpellRare ctermfg=none ctermbg=none cterm=reverse | |
200 | endif | |
0d23b6e5 BB |
201 | hi Statement ctermfg=161 cterm=bold |
202 | hi StatusLine ctermfg=238 ctermbg=253 | |
203 | hi StatusLineNC ctermfg=244 ctermbg=232 | |
204 | hi StorageClass ctermfg=208 | |
205 | hi Structure ctermfg=81 | |
206 | hi Tag ctermfg=161 | |
207 | hi Title ctermfg=166 | |
208 | hi Todo ctermfg=231 ctermbg=232 cterm=bold | |
209 | ||
210 | hi Typedef ctermfg=81 | |
211 | hi Type ctermfg=81 cterm=none | |
212 | hi Underlined ctermfg=244 cterm=underline | |
213 | ||
214 | hi VertSplit ctermfg=244 ctermbg=232 cterm=bold | |
551714b7 BB |
215 | hi VisualNOS ctermbg=240 |
216 | hi Visual ctermbg=238 | |
0d23b6e5 BB |
217 | hi WarningMsg ctermfg=231 ctermbg=238 cterm=bold |
218 | hi WildMenu ctermfg=81 ctermbg=16 | |
219 | ||
0d23b6e5 | 220 | hi Comment ctermfg=59 |
0d23b6e5 | 221 | hi CursorColumn ctermbg=234 |
551714b7 | 222 | hi ColorColumn ctermbg=234 |
0d23b6e5 | 223 | hi LineNr ctermfg=250 ctermbg=234 |
551714b7 BB |
224 | hi NonText ctermfg=59 |
225 | ||
226 | hi SpecialKey ctermfg=59 | |
227 | ||
228 | if exists("g:rehash256") && g:rehash256 == 1 | |
229 | hi Normal ctermfg=252 ctermbg=234 | |
230 | hi CursorLine ctermbg=236 cterm=none | |
231 | hi CursorLineNr ctermfg=226 | |
232 | ||
233 | hi Boolean ctermfg=141 | |
234 | hi Character ctermfg=222 | |
235 | hi Number ctermfg=141 | |
236 | hi String ctermfg=222 | |
237 | hi Conditional ctermfg=197 cterm=bold | |
238 | hi Constant ctermfg=141 cterm=bold | |
239 | ||
240 | hi DiffDelete ctermfg=125 ctermbg=233 | |
241 | ||
242 | hi Directory ctermfg=154 cterm=bold | |
243 | hi Error ctermfg=125 ctermbg=233 | |
244 | hi Exception ctermfg=154 cterm=bold | |
245 | hi Float ctermfg=141 | |
246 | hi Function ctermfg=154 | |
247 | hi Identifier ctermfg=208 | |
248 | ||
249 | hi Keyword ctermfg=197 cterm=bold | |
250 | hi Operator ctermfg=197 | |
251 | hi PreCondit ctermfg=154 cterm=bold | |
252 | hi PreProc ctermfg=154 | |
253 | hi Repeat ctermfg=197 cterm=bold | |
254 | ||
255 | hi Statement ctermfg=197 cterm=bold | |
256 | hi Tag ctermfg=197 | |
257 | hi Title ctermfg=203 | |
258 | hi Visual ctermbg=238 | |
259 | ||
260 | hi Comment ctermfg=244 | |
261 | hi LineNr ctermfg=239 ctermbg=235 | |
262 | hi NonText ctermfg=239 | |
263 | hi SpecialKey ctermfg=239 | |
264 | endif | |
0d23b6e5 | 265 | end |