Skip to content

Commit 879663f

Browse files
committed
256coloTerm more like GUI with key g:rehash256
1 parent c29d8a1 commit 879663f

File tree

2 files changed

+50
-3
lines changed

2 files changed

+50
-3
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ Just copy the file on your .vim/colors folder.
1717
If you prefer the scheme to match the original monokai background color, put this in your .vimrc file:
1818
let g:molokai_original = 1
1919

20+
There is also an alternative sheme under development for color terminals which attempts to bring the 256 color version as close as possible to the the default (dark) GUI version. To access, add this to your .vimrc:
21+
let g:rehash256 = 1

colors/molokai.vim

+48-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
" Vim color file
23
"
34
" Author: Tomas Restrepo <tomas@winterdom.com>
@@ -75,7 +76,7 @@ hi PreProc guifg=#A6E22E
7576
hi Question guifg=#66D9EF
7677
hi Repeat guifg=#F92672 gui=bold
7778
hi Search guifg=#FFFFFF guibg=#455354
78-
" marks column
79+
" marks
7980
hi SignColumn guifg=#A6E22E guibg=#232526
8081
hi SpecialChar guifg=#F92672 gui=bold
8182
hi SpecialComment guifg=#7E8E91 gui=bold
@@ -164,7 +165,7 @@ if &t_Co > 255
164165
hi Ignore ctermfg=244 ctermbg=232
165166
hi IncSearch ctermfg=193 ctermbg=16
166167

167-
hi Keyword ctermfg=161 cterm=bold
168+
hi keyword ctermfg=161 cterm=bold
168169
hi Label ctermfg=229 cterm=none
169170
hi Macro ctermfg=193
170171
hi SpecialKey ctermfg=81
@@ -191,7 +192,12 @@ if &t_Co > 255
191192
hi SpecialChar ctermfg=161 cterm=bold
192193
hi SpecialComment ctermfg=245 cterm=bold
193194
hi Special ctermfg=81
194-
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
195201
hi Statement ctermfg=161 cterm=bold
196202
hi StatusLine ctermfg=238 ctermbg=253
197203
hi StatusLineNC ctermfg=244 ctermbg=232
@@ -216,5 +222,44 @@ if &t_Co > 255
216222
hi ColorColumn ctermbg=234
217223
hi LineNr ctermfg=250 ctermbg=234
218224
hi NonText ctermfg=59
225+
219226
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
220265
end

0 commit comments

Comments
 (0)