aboutsummaryrefslogtreecommitdiffstats
path: root/colors/lettuce.vim
blob: 76a92f9150be62f825629f14d2bcdb8ffe3e2fb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
" Vim color file
"     Version:    1.2 2007.08.08
"     Author:     Valyaeff Valentin <hhyperr AT gmail DOT com>
"     License:    GPL
"
" Copyright 2007 Valyaeff Valentin
"
" This program is free software: you can redistribute it and/or modify
" it under the terms of the GNU General Public License as published by
" the Free Software Foundation, either version 3 of the License, or
" (at your option) any later version.
"
" This program is distributed in the hope that it will be useful,
" but WITHOUT ANY WARRANTY; without even the implied warranty of
" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
" GNU General Public License for more details.
"
" You should have received a copy of the GNU General Public License
" along with this program.  If not, see <http://www.gnu.org/licenses/>.

set background=dark
hi clear
if exists("syntax_on")
    syntax reset
endif
let g:colors_name="lettuce"


augroup Syntax_extensions
    au!
    au Syntax c,cpp,ruby,javascript syn match Operator "[*/%&|!=><^~,.;:?+-]\+" display contains=TOP
    au Syntax c,cpp syn region cParen matchgroup=Operator transparent start='(' end=')' contains=ALLBUT,@cParenGroup,cCppParen,cErrInBracket,cCppBracket,cCppString,@Spell
    au Syntax c,cpp syn region cCppParen matchgroup=Operator transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@cParenGroup,cErrInBracket,cParen,cBracket,cString,@Spell
    au Syntax c,cpp syn region cBracket matchgroup=Operator transparent start='\[\|<::\@!' end=']\|:>' contains=ALLBUT,@cParenGroup,cErrInParen,cCppParen,cCppBracket,cCppString,@Spell
    au Syntax c,cpp syn region cCppBracket matchgroup=Operator transparent start='\[\|<::\@!' skip='\\$' excludenl end=']\|:>' end='$' contained contains=ALLBUT,@cParenGroup,cErrInParen,cParen,cBracket,cString,@Spell
    au Syntax c,cpp syn region cBlock matchgroup=OperatorCurlyBrackets start="{" end="}" transparent fold
    au Syntax ruby syn match rubyBlockParameter "\%(\%(\<do\>\|{\)\s*\)\@<=|\s*[( ,a-zA-Z0-9_*)]\+\ze\s*|"hs=s+1 display
    au Syntax ruby syn region rubyCurlyBlock matchgroup=Operator start="{" end="}" contains=ALLBUT,@rubyExtendedStringSpecial,rubyTodo fold
    au Syntax ruby syn region rubyParentheses matchgroup=Operator start="(" end=")" contains=ALLBUT,@rubyExtendedStringSpecial,rubyTodo
    au Syntax ruby syn region rubySquareBrackets matchgroup=Operator start="\[" end="\]" contains=ALLBUT,@rubyExtendedStringSpecial,rubyTodo
    au Syntax javascript syn region javascriptCurlyBrackets matchgroup=Operator start="{" end="}" transparent fold
    au Syntax javascript syn region javascriptParentheses matchgroup=Operator start="(" end=")" transparent
    au Syntax javascript syn region javascriptSquareBrackets matchgroup=Operator start="\[" end="\]" transparent
augroup END


if !has("gui_running")

hi rubyGlobalVariable       cterm=none                   ctermfg=64
hi rubyPredefinedIdentifier cterm=bold                   ctermfg=64
hi def link rubyStringDelimiter String

hi Normal           cterm=none       ctermbg=232 ctermfg=189
hi StatusLine       cterm=none       ctermbg=236 ctermfg=231
hi StatusLineNC     cterm=none       ctermbg=236 ctermfg=103
hi User1            cterm=bold       ctermbg=236 ctermfg=223
hi User2            cterm=none       ctermbg=236 ctermfg=240
hi VertSplit        cterm=none       ctermbg=236 ctermfg=103
hi TabLine          cterm=none       ctermbg=236 ctermfg=145
hi TabLineFill      cterm=none       ctermbg=236
hi TabLineSel       cterm=none       ctermbg=240 ctermfg=253
hi LineNr           cterm=none                   ctermfg=238
hi NonText          cterm=bold       ctermbg=233 ctermfg=241
hi Folded           cterm=none       ctermbg=234 ctermfg=136
hi FoldColumn       cterm=none       ctermbg=236 ctermfg=103
hi SignColumn       cterm=none       ctermbg=236 ctermfg=103
hi CursorColumn     cterm=none       ctermbg=234
hi CursorLine       cterm=none       ctermbg=234
hi IncSearch        cterm=bold       ctermbg=63  ctermfg=232
hi Search           cterm=none       ctermbg=36  ctermfg=232
hi Visual           cterm=none       ctermbg=24
hi WildMenu         cterm=bold       ctermbg=35  ctermfg=232
hi ModeMsg          cterm=bold                   ctermfg=110
hi MoreMsg          cterm=bold                   ctermfg=121
hi Question         cterm=bold                   ctermfg=121
hi ErrorMsg         cterm=none       ctermbg=88  ctermfg=255
hi WarningMsg       cterm=none       ctermbg=58  ctermfg=255
hi SpecialKey       cterm=none                   ctermfg=77
hi Title            cterm=bold                   ctermfg=147
hi Directory                                     ctermfg=105
hi DiffAdd          cterm=none       ctermbg=18
hi DiffChange       cterm=none       ctermbg=58
hi DiffDelete       cterm=none       ctermbg=52  ctermfg=58
hi DiffText         cterm=none       ctermbg=53
hi Pmenu            cterm=none       ctermbg=17  ctermfg=121
hi PmenuSel         cterm=none       ctermbg=24  ctermfg=121
hi PmenuSbar        cterm=none       ctermbg=19
hi PmenuThumb       cterm=none       ctermbg=37
hi MatchParen       cterm=bold       ctermbg=24
hi SpellBad         cterm=none       ctermbg=88
hi SpellCap         cterm=none       ctermbg=18
hi SpellLocal       cterm=none       ctermbg=30
hi SpellRare        cterm=none       ctermbg=90

hi Comment          cterm=none                   ctermfg=138
hi Constant         cterm=none                   ctermfg=215
 hi String          cterm=none       ctermbg=235 ctermfg=215
 hi Character       cterm=none       ctermbg=235 ctermfg=215
 hi Number          cterm=none                   ctermfg=34
 hi Float           cterm=none                   ctermfg=41
hi Identifier       cterm=none                   ctermfg=186
 hi Function        cterm=none                   ctermfg=210
hi Statement        cterm=bold                   ctermfg=63
 hi Exception       cterm=bold                   ctermfg=99
 hi Operator        cterm=none                   ctermfg=75
 hi Label           cterm=none                   ctermfg=63
hi PreProc          cterm=bold                   ctermfg=36
hi Type             cterm=bold                   ctermfg=71
hi Special          cterm=none       ctermbg=235 ctermfg=87
hi Underlined       cterm=underline              ctermfg=227
hi Ignore           cterm=bold                   ctermfg=235
hi Error            cterm=bold       ctermbg=52  ctermfg=231
hi Todo             cterm=bold       ctermbg=143 ctermfg=16

hi OperatorCurlyBrackets cterm=bold ctermfg=75

" highlight modes
autocmd InsertEnter * hi StatusLine ctermbg=52
autocmd InsertEnter * hi User1      ctermbg=52
autocmd InsertEnter * hi User2      ctermbg=52
autocmd InsertLeave * hi User2      ctermbg=236
autocmd InsertLeave * hi User1      ctermbg=236
autocmd InsertLeave * hi StatusLine ctermbg=236
autocmd CmdwinEnter * hi StatusLine ctermbg=22
autocmd CmdwinEnter * hi User1      ctermbg=22
autocmd CmdwinEnter * hi User2      ctermbg=22
autocmd CmdwinLeave * hi User2      ctermbg=236
autocmd CmdwinLeave * hi User1      ctermbg=236
autocmd CmdwinLeave * hi StatusLine ctermbg=236

else

hi rubyGlobalVariable       gui=none                   guifg=#5f8700
hi rubyPredefinedIdentifier gui=bold                   guifg=#5f8700
hi def link rubyStringDelimiter String

hi Normal           gui=none       guibg=#121212 guifg=#dfdfff
hi StatusLine       gui=none       guibg=#303030 guifg=#ffffff
hi StatusLineNC     gui=none       guibg=#303030 guifg=#8787af
hi User1            gui=bold       guibg=#303030 guifg=#ffdfaf
hi User2            gui=none       guibg=#303030 guifg=#585858
hi VertSplit        gui=none       guibg=#303030 guifg=#8787af
hi TabLine          gui=none       guibg=#303030 guifg=#afafaf
hi TabLineFill      gui=none       guibg=#303030
hi TabLineSel       gui=none       guibg=#585858 guifg=#dadada
hi LineNr           gui=none                   guifg=#444444
hi NonText          gui=bold       guibg=#121212 guifg=#606060
hi Folded           gui=none       guibg=#1c1c1c guifg=#af8700
hi FoldColumn       gui=none       guibg=#303030 guifg=#8787af
hi SignColumn       gui=none       guibg=#303030 guifg=#8787af
hi CursorColumn     gui=none       guibg=#1c1c1c
hi CursorLine       gui=none       guibg=#1c1c1c
hi IncSearch        gui=bold       guibg=#5f5fff  guifg=#080808
hi Search           gui=none       guibg=#00af87  guifg=#080808
hi Visual           gui=none       guibg=#005f87
hi WildMenu         gui=bold       guibg=#00af5f  guifg=#080808
hi ModeMsg          gui=bold                   guifg=#87afdf
hi MoreMsg          gui=bold                   guifg=#87ffaf
hi Question         gui=bold                   guifg=#87ffaf
hi ErrorMsg         gui=none       guibg=#870000  guifg=#eeeeee
hi WarningMsg       gui=none       guibg=#5f5f00  guifg=#eeeeee
hi SpecialKey       gui=none                   guifg=#5fdf5f
hi Title            gui=bold                   guifg=#afafff
hi Directory                                     guifg=#8787ff
hi DiffAdd          gui=none       guibg=#000087
hi DiffChange       gui=none       guibg=#5f5f00
hi DiffDelete       gui=none       guibg=#5f0000  guifg=#5f5f00
hi DiffText         gui=none       guibg=#5f005f
hi Pmenu            gui=none       guibg=#00005f  guifg=#87ffaf
hi PmenuSel         gui=none       guibg=#005f87  guifg=#87ffaf
hi PmenuSbar        gui=none       guibg=#0000af
hi PmenuThumb       gui=none       guibg=#00afaf
hi MatchParen       gui=bold       guibg=#005f87
hi SpellBad         gui=none       guibg=#870000
hi SpellCap         gui=none       guibg=#000087
hi SpellLocal       gui=none       guibg=#008787
hi SpellRare        gui=none       guibg=#870087

hi Comment          gui=none                   guifg=#af8787
hi Constant         gui=none                   guifg=#ffaf5f
 hi String          gui=none       guibg=#262626 guifg=#ffaf5f
 hi Character       gui=none       guibg=#262626 guifg=#ffaf5f
 hi Number          gui=none                   guifg=#00af00
 hi Float           gui=none                   guifg=#00df5f
hi Identifier       gui=none                   guifg=#dfdf87
 hi Function        gui=none                   guifg=#ff8787
hi Statement        gui=bold                   guifg=#5f5fff
 hi Exception       gui=bold                   guifg=#875fff
 hi Operator        gui=none                   guifg=#5fafff
 hi Label           gui=none                   guifg=#5f5fff
hi PreProc          gui=bold                   guifg=#00af87
hi Type             gui=bold                   guifg=#5faf5f
hi Special          gui=none       guibg=#262626 guifg=#5fffff
hi Underlined       gui=underline              guifg=#ffff5f
hi Ignore           gui=bold                   guifg=#262626
hi Error            gui=bold       guibg=#5f0000  guifg=#ffffff
hi Todo             gui=bold       guibg=#afaf5f guifg=#000000

hi OperatorCurlyBrackets gui=bold guifg=#5fafff

" highlight modes
autocmd InsertEnter * hi StatusLine guibg=#5f0000
autocmd InsertEnter * hi User1      guibg=#5f0000
autocmd InsertEnter * hi User2      guibg=#5f0000
autocmd InsertLeave * hi User2      guibg=#303030
autocmd InsertLeave * hi User1      guibg=#303030
autocmd InsertLeave * hi StatusLine guibg=#303030
autocmd CmdwinEnter * hi StatusLine guibg=#005f00
autocmd CmdwinEnter * hi User1      guibg=#005f00
autocmd CmdwinEnter * hi User2      guibg=#005f00
autocmd CmdwinLeave * hi User2      guibg=#303030
autocmd CmdwinLeave * hi User1      guibg=#303030
autocmd CmdwinLeave * hi StatusLine guibg=#303030

end