1 if exists("g:moria_style")
2 let s:moria_style = g:moria_style
4 let s:moria_style = &background
7 if exists("g:moria_monochrome")
8 let s:moria_monochrome = g:moria_monochrome
10 let s:moria_monochrome = 0
13 if exists("g:moria_fontface")
14 let s:moria_fontface = g:moria_fontface
16 let s:moria_fontface = "plain"
19 execute "command! -nargs=1 Colo let g:moria_style = \"<args>\" | colo moria"
21 if s:moria_style == "black" || s:moria_style == "dark"
23 elseif s:moria_style == "light" || s:moria_style == "white"
26 let s:moria_style = &background
31 if exists("syntax_on")
35 let colors_name = "moria"
37 if &background == "dark"
38 if s:moria_style == "dark"
39 hi Normal ctermbg=Black ctermfg=LightGray guibg=#202020 guifg=#d0d0d0 gui=none
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
46 hi CursorColumn ctermbg=DarkGray ctermfg=White guibg=#3a3a3a gui=none
47 hi CursorLine ctermbg=DarkGray ctermfg=White guibg=#3a3a3a gui=none
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
66 hi Folded guibg=#4e4e4e guifg=#c0c0c0 gui=none
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
85 hi Folded guibg=#4e4e4e guifg=#bdcae3 gui=none
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
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
107 hi TabLineSel guibg=bg guifg=fg gui=bold
108 hi Title ctermbg=Black ctermfg=White guifg=fg gui=bold
110 hi Visual ctermbg=LightGray ctermfg=Black guibg=#606060 gui=none
112 hi Visual ctermbg=LightGray ctermfg=Black guibg=#606060 guifg=fg gui=none
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
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
130 if s:moria_fontface == "mixed"
131 hi Statement guibg=bg guifg=#7ec0ee gui=bold
132 hi Type guibg=bg guifg=#f09479 gui=bold
134 hi Statement guibg=bg guifg=#7ec0ee gui=none
135 hi Type guibg=bg guifg=#f09479 gui=none
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
145 elseif &background == "light"
146 if s:moria_style == "light"
147 hi Normal ctermbg=White ctermfg=Black guibg=#f0f0f0 guifg=#000000 gui=none
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
154 hi CursorColumn ctermbg=LightGray ctermfg=Black guibg=#dfdfdf gui=none
155 hi CursorLine ctermbg=LightGray ctermfg=Black guibg=#dfdfdf gui=none
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
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
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
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
207 hi TabLineSel guibg=bg guifg=fg gui=bold
208 hi Title guifg=fg gui=bold
210 hi Visual ctermbg=LightGray ctermfg=Black guibg=#c4c4c4 gui=none
212 hi Visual ctermbg=LightGray ctermfg=Black guibg=#c4c4c4 guifg=fg gui=none
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
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
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
241 hi! default link bbcodeBold htmlBold
242 hi! default link bbcodeBoldItalic htmlBoldItalic
243 hi! default link bbcodeBoldItalicUnderline htmlBoldUnderlineItalic
244 hi! default link bbcodeBoldUnderline htmlBoldUnderline
245 hi! default link bbcodeItalic htmlItalic
246 hi! default link bbcodeItalicUnderline htmlUnderlineItalic
247 hi! default link bbcodeUnderline htmlUnderline