]> git.r.bdr.sh - rbdr/dotfiles/blame - vim/colors/moria.vim
Use yellow identifiers instead of red
[rbdr/dotfiles] / vim / colors / moria.vim
CommitLineData
0d23b6e5
BB
1if exists("g:moria_style")
2 let s:moria_style = g:moria_style
3else
4 let s:moria_style = &background
5endif
6
7if exists("g:moria_monochrome")
8 let s:moria_monochrome = g:moria_monochrome
9else
10 let s:moria_monochrome = 0
11endif
12
13if exists("g:moria_fontface")
14 let s:moria_fontface = g:moria_fontface
15else
16 let s:moria_fontface = "plain"
17endif
18
19execute "command! -nargs=1 Colo let g:moria_style = \"<args>\" | colo moria"
20
21if s:moria_style == "black" || s:moria_style == "dark"
22 set background=dark
23elseif s:moria_style == "light" || s:moria_style == "white"
24 set background=light
25else
26 let s:moria_style = &background
27endif
28
29hi clear
30
31if exists("syntax_on")
32 syntax reset
33endif
34
35let colors_name = "moria"
36
37if &background == "dark"
38 if s:moria_style == "dark"
39 hi Normal ctermbg=Black ctermfg=LightGray guibg=#202020 guifg=#d0d0d0 gui=none
40
41 hi CursorColumn ctermbg=DarkGray ctermfg=White guibg=#404040 gui=none
42 hi CursorLine ctermbg=DarkGray ctermfg=White guibg=#404040 gui=none
43 elseif s:moria_style == "black"
44 hi Normal ctermbg=Black ctermfg=LightGray guibg=#000000 guifg=#d0d0d0 gui=none
45
46 hi CursorColumn ctermbg=DarkGray ctermfg=White guibg=#3a3a3a gui=none
47 hi CursorLine ctermbg=DarkGray ctermfg=White guibg=#3a3a3a gui=none
48 endif
49 if s:moria_monochrome == 1
50 hi FoldColumn ctermbg=bg guibg=bg guifg=#a0a0a0 gui=none
51 hi LineNr guifg=#a0a0a0 gui=none
52 hi MoreMsg guibg=bg guifg=#b6b6b6 gui=bold
53 hi NonText ctermfg=DarkGray guibg=bg guifg=#a0a0a0 gui=bold
54 hi Pmenu guibg=#909090 guifg=#000000 gui=none
55 hi PmenuSbar guibg=#707070 guifg=fg gui=none
56 hi PmenuThumb guibg=#d0d0d0 guifg=bg gui=none
57 hi SignColumn ctermbg=bg guibg=bg guifg=#a0a0a0 gui=none
58 hi StatusLine ctermbg=LightGray ctermfg=Black guibg=#4c4c4c guifg=fg gui=bold
59 hi StatusLineNC ctermbg=DarkGray ctermfg=Black guibg=#404040 guifg=fg gui=none
60 hi TabLine guibg=#6e6e6e guifg=fg gui=underline
61 hi TabLineFill guibg=#6e6e6e guifg=fg gui=underline
62 hi VertSplit ctermbg=LightGray ctermfg=Black guibg=#404040 guifg=fg gui=none
63 if s:moria_fontface == "mixed"
64 hi Folded guibg=#4e4e4e guifg=#c0c0c0 gui=bold
65 else
66 hi Folded guibg=#4e4e4e guifg=#c0c0c0 gui=none
67 endif
68 else
69 hi FoldColumn ctermbg=bg guibg=bg guifg=#8fa5d1 gui=none
70 hi LineNr guifg=#8fa5d1 gui=none
71 hi MoreMsg guibg=bg guifg=#97abd5 gui=bold
72 hi NonText ctermfg=DarkGray guibg=bg guifg=#8fa5d1 gui=bold
73 hi Pmenu guibg=#6381be guifg=#000000 gui=none
74 hi PmenuSbar guibg=#41609e guifg=fg gui=none
75 hi PmenuThumb guibg=#bdcae3 guifg=bg gui=none
76 hi SignColumn ctermbg=bg guibg=bg guifg=#8fa5d1 gui=none
77 hi StatusLine ctermbg=LightGray ctermfg=Black guibg=#334b7d guifg=fg gui=bold
78 hi StatusLineNC ctermbg=DarkGray ctermfg=Black guibg=#25365a guifg=fg gui=none
79 hi TabLine guibg=#41609e guifg=fg gui=underline
80 hi TabLineFill guibg=#41609e guifg=fg gui=underline
81 hi VertSplit ctermbg=LightGray ctermfg=Black guibg=#25365a guifg=fg gui=none
82 if s:moria_fontface == "mixed"
83 hi Folded guibg=#4e4e4e guifg=#bdcae3 gui=bold
84 else
85 hi Folded guibg=#4e4e4e guifg=#bdcae3 gui=none
86 endif
87 endif
88 hi Cursor guibg=#ffa500 guifg=bg gui=none
89 hi DiffAdd guibg=#008b00 guifg=fg gui=none
90 hi DiffChange guibg=#00008b guifg=fg gui=none
91 hi DiffDelete guibg=#8b0000 guifg=fg gui=none
92 hi DiffText guibg=#0000cd guifg=fg gui=bold
93 hi Directory guibg=bg guifg=#1e90ff gui=none
94 hi ErrorMsg guibg=#ee2c2c guifg=#ffffff gui=bold
95 hi IncSearch guibg=#e0cd78 guifg=#000000 gui=none
96 hi ModeMsg guibg=bg guifg=fg gui=bold
97 hi PmenuSel guibg=#e0e000 guifg=#000000 gui=none
98 hi Question guibg=bg guifg=#e8b87e gui=bold
99 hi Search guibg=#90e090 guifg=#000000 gui=none
100 hi SpecialKey guibg=bg guifg=#e8b87e gui=none
101 if has("spell")
102 hi SpellBad guisp=#ee2c2c gui=undercurl
103 hi SpellCap guisp=#2c2cee gui=undercurl
104 hi SpellLocal guisp=#2ceeee gui=undercurl
105 hi SpellRare guisp=#ee2cee gui=undercurl
106 endif
107 hi TabLineSel guibg=bg guifg=fg gui=bold
108 hi Title ctermbg=Black ctermfg=White guifg=fg gui=bold
109 if version >= 700
110 hi Visual ctermbg=LightGray ctermfg=Black guibg=#606060 gui=none
111 else
112 hi Visual ctermbg=LightGray ctermfg=Black guibg=#606060 guifg=fg gui=none
113 endif
114 hi VisualNOS ctermbg=DarkGray ctermfg=Black guibg=bg guifg=#a0a0a0 gui=bold,underline
115 hi WarningMsg guibg=bg guifg=#ee2c2c gui=bold
116 hi WildMenu guibg=#e0e000 guifg=#000000 gui=bold
117
118 hi Comment guibg=bg guifg=#d0d0a0 gui=none
119 hi Constant guibg=bg guifg=#87df71 gui=none
120 hi Error guibg=bg guifg=#ee2c2c gui=none
121 hi Identifier guibg=bg guifg=#7ee0ce gui=none
122 hi Ignore guibg=bg guifg=bg gui=none
123 hi lCursor guibg=#00e700 guifg=#000000 gui=none
124 hi MatchParen guibg=#008b8b gui=none
125 hi PreProc guibg=bg guifg=#d7a0d7 gui=none
126 hi Special guibg=bg guifg=#e8b87e gui=none
127 hi Todo guibg=#e0e000 guifg=#000000 gui=none
128 hi Underlined ctermbg=Black ctermfg=White guibg=bg guifg=#00a0ff gui=underline
129
130 if s:moria_fontface == "mixed"
131 hi Statement guibg=bg guifg=#7ec0ee gui=bold
132 hi Type guibg=bg guifg=#f09479 gui=bold
133 else
134 hi Statement guibg=bg guifg=#7ec0ee gui=none
135 hi Type guibg=bg guifg=#f09479 gui=none
136 endif
137
138 hi htmlBold ctermbg=Black ctermfg=White guibg=bg guifg=fg gui=bold
139 hi htmlBoldItalic ctermbg=Black ctermfg=White guibg=bg guifg=fg gui=bold,italic
140 hi htmlBoldUnderline ctermbg=Black ctermfg=White guibg=bg guifg=fg gui=bold,underline
141 hi htmlBoldUnderlineItalic ctermbg=Black ctermfg=White guibg=bg guifg=fg gui=bold,underline,italic
142 hi htmlItalic ctermbg=Black ctermfg=White guibg=bg guifg=fg gui=italic
143 hi htmlUnderline ctermbg=Black ctermfg=White guibg=bg guifg=fg gui=underline
144 hi htmlUnderlineItalic ctermbg=Black ctermfg=White guibg=bg guifg=fg gui=underline,italic
145elseif &background == "light"
146 if s:moria_style == "light"
147 hi Normal ctermbg=White ctermfg=Black guibg=#f0f0f0 guifg=#000000 gui=none
148
149 hi CursorColumn ctermbg=LightGray ctermfg=Black guibg=#d8d8d8 gui=none
150 hi CursorLine ctermbg=LightGray ctermfg=Black guibg=#d8d8d8 gui=none
151 elseif s:moria_style == "white"
152 hi Normal ctermbg=White ctermfg=Black guibg=#ffffff guifg=#000000 gui=none
153
154 hi CursorColumn ctermbg=LightGray ctermfg=Black guibg=#dfdfdf gui=none
155 hi CursorLine ctermbg=LightGray ctermfg=Black guibg=#dfdfdf gui=none
156 endif
157 if s:moria_monochrome == 1
158 hi FoldColumn ctermbg=bg guibg=bg guifg=#7a7a7a gui=none
159 hi Folded guibg=#cfcfcf guifg=#404040 gui=bold
160 hi LineNr guifg=#7a7a7a gui=none
161 hi MoreMsg guibg=bg guifg=#505050 gui=bold
162 hi NonText ctermfg=DarkGray guibg=bg guifg=#7a7a7a gui=bold
163 hi Pmenu guibg=#9a9a9a guifg=#000000 gui=none
164 hi PmenuSbar guibg=#808080 guifg=fg gui=none
165 hi PmenuThumb guibg=#c0c0c0 guifg=fg gui=none
166 hi SignColumn ctermbg=bg guibg=bg guifg=#7a7a7a gui=none
167 hi StatusLine ctermbg=Black ctermfg=White guibg=#a0a0a0 guifg=fg gui=bold
168 hi StatusLineNC ctermbg=LightGray ctermfg=Black guibg=#b0b0b0 guifg=fg gui=none
169 hi TabLine guibg=#cdcdcd guifg=fg gui=underline
170 hi TabLineFill guibg=#cdcdcd guifg=fg gui=underline
171 hi VertSplit ctermbg=LightGray ctermfg=Black guibg=#b0b0b0 guifg=fg gui=none
172 else
173 hi FoldColumn ctermbg=bg guibg=bg guifg=#375288 gui=none
174 hi Folded guibg=#cfcfcf guifg=#25365a gui=bold
175 hi LineNr guifg=#375288 gui=none
176 hi MoreMsg guibg=bg guifg=#2f4471 gui=bold
177 hi NonText ctermfg=DarkGray guibg=bg guifg=#375288 gui=bold
178 hi Pmenu guibg=#708bc5 guifg=#000000 gui=none
179 hi PmenuSbar guibg=#4a6db5 guifg=fg gui=none
180 hi PmenuThumb guibg=#a6b7db guifg=fg gui=none
181 hi SignColumn ctermbg=bg guibg=bg guifg=#375288 gui=none
182 hi StatusLine ctermbg=Black ctermfg=White guibg=#8fa5d1 guifg=fg gui=bold
183 hi StatusLineNC ctermbg=LightGray ctermfg=Black guibg=#a6b7db guifg=fg gui=none
184 hi TabLine guibg=#b8c6e2 guifg=fg gui=underline
185 hi TabLineFill guibg=#b8c6e2 guifg=fg gui=underline
186 hi VertSplit ctermbg=LightGray ctermfg=Black guibg=#a6b7db guifg=fg gui=none
187 endif
188 hi Cursor guibg=#883400 guifg=bg gui=none
189 hi DiffAdd guibg=#008b00 guifg=#ffffff gui=none
190 hi DiffChange guibg=#00008b guifg=#ffffff gui=none
191 hi DiffDelete guibg=#8b0000 guifg=#ffffff gui=none
192 hi DiffText guibg=#0000cd guifg=#ffffff gui=bold
193 hi Directory guibg=bg guifg=#0000f0 gui=none
194 hi ErrorMsg guibg=#ee2c2c guifg=#ffffff gui=bold
195 hi IncSearch guibg=#ffcd78 gui=none
196 hi ModeMsg ctermbg=White ctermfg=Black guibg=bg guifg=fg gui=bold
197 hi PmenuSel guibg=#ffff00 guifg=#000000 gui=none
198 hi Question guibg=bg guifg=#813f11 gui=bold
199 hi Search guibg=#a0f0a0 gui=none
200 hi SpecialKey guibg=bg guifg=#912f11 gui=none
201 if has("spell")
202 hi SpellBad guisp=#ee2c2c gui=undercurl
203 hi SpellCap guisp=#2c2cee gui=undercurl
204 hi SpellLocal guisp=#008b8b gui=undercurl
205 hi SpellRare guisp=#ee2cee gui=undercurl
206 endif
207 hi TabLineSel guibg=bg guifg=fg gui=bold
208 hi Title guifg=fg gui=bold
209 if version >= 700
210 hi Visual ctermbg=LightGray ctermfg=Black guibg=#c4c4c4 gui=none
211 else
212 hi Visual ctermbg=LightGray ctermfg=Black guibg=#c4c4c4 guifg=fg gui=none
213 endif
214 hi VisualNOS ctermbg=DarkGray ctermfg=Black guibg=bg guifg=#a0a0a0 gui=bold,underline
215 hi WarningMsg guibg=bg guifg=#ee2c2c gui=bold
216 hi WildMenu guibg=#ffff00 guifg=fg gui=bold
217
218 hi Comment guibg=bg guifg=#786000 gui=none
219 hi Constant guibg=bg guifg=#077807 gui=none
220 hi Error guibg=bg guifg=#ee2c2c gui=none
221 hi Identifier guibg=bg guifg=#007080 gui=none
222 hi Ignore guibg=bg guifg=bg gui=none
223 hi lCursor guibg=#008000 guifg=#ffffff gui=none
224 hi MatchParen guibg=#00ffff gui=none
225 hi PreProc guibg=bg guifg=#800090 gui=none
226 hi Special guibg=bg guifg=#912f11 gui=none
227 hi Statement guibg=bg guifg=#1f3f81 gui=bold
228 hi Todo guibg=#ffff00 guifg=fg gui=none
229 hi Type guibg=bg guifg=#912f11 gui=bold
230 hi Underlined ctermbg=White ctermfg=Black guibg=bg guifg=#0000cd gui=underline
231
232 hi htmlBold ctermbg=White ctermfg=Black guibg=bg guifg=fg gui=bold
233 hi htmlBoldItalic ctermbg=White ctermfg=Black guibg=bg guifg=fg gui=bold,italic
234 hi htmlBoldUnderline ctermbg=White ctermfg=Black guibg=bg guifg=fg gui=bold,underline
235 hi htmlBoldUnderlineItalic ctermbg=White ctermfg=Black guibg=bg guifg=fg gui=bold,underline,italic
236 hi htmlItalic ctermbg=White ctermfg=Black guibg=bg guifg=fg gui=italic
237 hi htmlUnderline ctermbg=White ctermfg=Black guibg=bg guifg=fg gui=underline
238 hi htmlUnderlineItalic ctermbg=White ctermfg=Black guibg=bg guifg=fg gui=underline,italic
239endif
240
241hi! default link bbcodeBold htmlBold
242hi! default link bbcodeBoldItalic htmlBoldItalic
243hi! default link bbcodeBoldItalicUnderline htmlBoldUnderlineItalic
244hi! default link bbcodeBoldUnderline htmlBoldUnderline
245hi! default link bbcodeItalic htmlItalic
246hi! default link bbcodeItalicUnderline htmlUnderlineItalic
247hi! default link bbcodeUnderline htmlUnderline