]> Tony Duckles's Git Repositories (git.nynim.org) - dotfiles.git/blob - .vim/colors/moria.vim
Fixes for Solaris hosts
[dotfiles.git] / .vim / colors / moria.vim
1 if exists("g:moria_style")
2 let s:moria_style = g:moria_style
3 else
4 let s:moria_style = &background
5 endif
6
7 execute "command! -nargs=1 Colo let g:moria_style = \"<args>\" | colo moria"
8
9 if s:moria_style == "dark" || s:moria_style == "black"
10 set background=dark
11 elseif s:moria_style == "light" || s:moria_style == "white"
12 set background=light
13 else
14 let s:moria_style = &background
15 endif
16
17 hi clear
18
19 if exists("syntax_on")
20 syntax reset
21 endif
22
23 let colors_name = "moria"
24
25 if &background == "dark"
26 if s:moria_style == "dark"
27 hi Normal ctermbg=0 ctermfg=7 guibg=#202020 guifg=#d0d0d0 gui=none
28
29 hi CursorColumn guibg=#444444 gui=none
30 hi CursorLine guibg=#444444 gui=none
31 elseif s:moria_style == "black"
32 hi Normal ctermbg=0 ctermfg=7 guibg=#000000 guifg=#d0d0d0 gui=none
33
34 hi CursorColumn guibg=#3a3a3a gui=none
35 hi CursorLine guibg=#3a3a3a gui=none
36 endif
37 hi Cursor guibg=#ffa500 guifg=bg gui=none
38 hi DiffAdd guibg=#008b00 guifg=fg gui=none
39 hi DiffChange guibg=#00008b guifg=fg gui=none
40 hi DiffDelete guibg=#8b0000 guifg=fg gui=none
41 hi DiffText guibg=#0000cd guifg=fg gui=bold
42 hi Directory guibg=bg guifg=#1e90ff gui=none
43 hi ErrorMsg guibg=#ee2c2c guifg=#ffffff gui=bold
44 hi FoldColumn ctermbg=bg guibg=bg guifg=#a0b0c0 gui=none
45 hi Folded guibg=#585858 guifg=#c0d0e0 gui=none
46 hi IncSearch guibg=#e0cd78 guifg=#000000 gui=none
47 hi LineNr guifg=#a0b0c0 gui=none
48 hi ModeMsg guibg=bg guifg=fg gui=bold
49 hi MoreMsg guibg=bg guifg=#7ec0ee gui=bold
50 hi NonText ctermfg=8 guibg=bg guifg=#a0b0c0 gui=bold
51 hi Pmenu guibg=#8090a0 guifg=#000000 gui=none
52 hi PmenuSbar guibg=#607080 guifg=fg gui=none
53 hi PmenuSel guibg=#e0e000 guifg=#000000 gui=none
54 hi PmenuThumb guibg=#c0d0e0 guifg=bg gui=none
55 hi Question guibg=bg guifg=#e8b87e gui=bold
56 hi Search guibg=#90e090 guifg=#000000 gui=none
57 hi SignColumn ctermbg=bg guibg=bg guifg=#a0b0c0 gui=none
58 hi SpecialKey guibg=bg guifg=#e8b87e gui=none
59 if has("spell")
60 hi SpellBad guisp=#ee2c2c gui=undercurl
61 hi SpellCap guisp=#2c2cee gui=undercurl
62 hi SpellLocal guisp=#2ceeee gui=undercurl
63 hi SpellRare guisp=#ee2cee gui=undercurl
64 endif
65 hi StatusLine ctermbg=7 ctermfg=0 guibg=#485868 guifg=fg gui=bold
66 hi StatusLineNC ctermbg=8 ctermfg=0 guibg=#304050 guifg=fg gui=none
67 hi TabLine guibg=#566676 guifg=fg gui=underline
68 hi TabLineFill guibg=#c0d0e0 guifg=bg gui=none
69 hi TabLineSel guibg=bg guifg=fg gui=bold
70 hi Title ctermbg=0 ctermfg=15 guifg=fg gui=bold
71 hi VertSplit ctermbg=7 ctermfg=0 guibg=#304050 guifg=fg gui=none
72 if version >= 700
73 hi Visual ctermbg=7 ctermfg=0 guibg=#607080 gui=none
74 else
75 hi Visual ctermbg=7 ctermfg=0 guibg=#607080 guifg=fg gui=none
76 endif
77 hi VisualNOS guibg=bg guifg=#90a0b0 gui=bold,underline
78 hi WarningMsg guibg=bg guifg=#ee2c2c gui=bold
79 hi WildMenu guibg=#e0e000 guifg=#000000 gui=bold
80
81 hi Comment guibg=bg guifg=#d0d0a0 gui=none
82 hi Constant guibg=bg guifg=#87df71 gui=none
83 hi Error guibg=bg guifg=#ee2c2c gui=none
84 hi Identifier guibg=bg guifg=#7ee0ce gui=none
85 hi Ignore guibg=bg guifg=bg gui=none
86 hi lCursor guibg=#00e700 guifg=#000000 gui=none
87 hi MatchParen guibg=#008b8b gui=none
88 hi PreProc guibg=bg guifg=#d7a0d7 gui=none
89 hi Special guibg=bg guifg=#e8b87e gui=none
90 hi Statement guibg=bg guifg=#7ec0ee gui=none
91 hi Todo guibg=#e0e000 guifg=#000000 gui=none
92 hi Type guibg=bg guifg=#f09479 gui=none
93 hi Underlined guibg=bg guifg=#00a0ff gui=underline
94
95 hi htmlBold ctermbg=0 ctermfg=15 guibg=bg guifg=fg gui=bold
96 hi htmlItalic ctermbg=0 ctermfg=15 guibg=bg guifg=fg gui=italic
97 hi htmlUnderline ctermbg=0 ctermfg=15 guibg=bg guifg=fg gui=underline
98 hi htmlBoldItalic ctermbg=0 ctermfg=15 guibg=bg guifg=fg gui=bold,italic
99 hi htmlBoldUnderline ctermbg=0 ctermfg=15 guibg=bg guifg=fg gui=bold,underline
100 hi htmlBoldUnderlineItalic ctermbg=0 ctermfg=15 guibg=bg guifg=fg gui=bold,underline,italic
101 hi htmlUnderlineItalic ctermbg=0 ctermfg=15 guibg=bg guifg=fg gui=underline,italic
102 elseif &background == "light"
103 if s:moria_style == "light"
104 hi Normal ctermbg=15 ctermfg=0 guibg=#f0f0f0 guifg=#000000 gui=none
105
106 hi CursorColumn guibg=#d4d4d4 gui=none
107 hi CursorLine guibg=#d4d4d4 gui=none
108 elseif s:moria_style == "white"
109 hi Normal ctermbg=15 ctermfg=0 guibg=#ffffff guifg=#000000 gui=none
110
111 hi CursorColumn guibg=#dbdbdb gui=none
112 hi CursorLine guibg=#dbdbdb gui=none
113 endif
114 hi Cursor guibg=#883400 guifg=bg gui=none
115 hi DiffAdd guibg=#008b00 guifg=#ffffff gui=none
116 hi DiffChange guibg=#00008b guifg=#ffffff gui=none
117 hi DiffDelete guibg=#8b0000 guifg=#ffffff gui=none
118 hi DiffText guibg=#0000cd guifg=#ffffff gui=bold
119 hi Directory guibg=bg guifg=#0000f0 gui=none
120 hi ErrorMsg guibg=#ee2c2c guifg=#ffffff gui=bold
121 hi FoldColumn ctermbg=bg guibg=bg guifg=#506070 gui=none
122 hi Folded guibg=#c5c5c5 guifg=#203040 gui=none
123 hi IncSearch guibg=#ffcd78 gui=none
124 hi LineNr guifg=#506070 gui=none
125 hi ModeMsg ctermbg=15 ctermfg=0 guibg=bg guifg=fg gui=bold
126 hi MoreMsg guibg=bg guifg=#1f3f81 gui=bold
127 hi NonText ctermfg=8 guibg=bg guifg=#506070 gui=bold
128 hi Pmenu guibg=#8a9aaa guifg=#000000 gui=none
129 hi PmenuSbar guibg=#708090 guifg=fg gui=none
130 hi PmenuSel guibg=#ffff00 guifg=#000000 gui=none
131 hi PmenuThumb guibg=#b0c0d0 guifg=fg gui=none
132 hi Question guibg=bg guifg=#813f11 gui=bold
133 hi Search guibg=#a0f0a0 gui=none
134 hi SignColumn ctermbg=bg guibg=bg guifg=#506070 gui=none
135 hi SpecialKey guibg=bg guifg=#912f11 gui=none
136 if has("spell")
137 hi SpellBad guisp=#ee2c2c gui=undercurl
138 hi SpellCap guisp=#2c2cee gui=undercurl
139 hi SpellLocal guisp=#008b8b gui=undercurl
140 hi SpellRare guisp=#ee2cee gui=undercurl
141 endif
142 hi StatusLine ctermbg=0 ctermfg=15 guibg=#a0b0c0 guifg=fg gui=bold
143 hi StatusLineNC ctermbg=7 ctermfg=0 guibg=#b0c0d0 guifg=fg gui=none
144 hi TabLine guibg=#b4c4d4 guifg=fg gui=underline
145 hi TabLineFill guibg=fg guifg=bg gui=none
146 hi TabLineSel guibg=bg guifg=fg gui=bold
147 hi Title guifg=fg gui=bold
148 hi VertSplit ctermbg=7 ctermfg=0 guibg=#b0c0d0 guifg=fg gui=none
149 if version >= 700
150 hi Visual ctermbg=7 ctermfg=0 guibg=#c0d0e0 gui=none
151 else
152 hi Visual ctermbg=7 ctermfg=0 guibg=#c0d0e0 guifg=fg gui=none
153 endif
154 hi VisualNOS guibg=bg guifg=#90a0b0 gui=bold,underline
155 hi WarningMsg guibg=bg guifg=#ee2c2c gui=bold
156 hi WildMenu guibg=#ffff00 guifg=fg gui=bold
157
158 hi Comment guibg=bg guifg=#786000 gui=none
159 hi Constant guibg=bg guifg=#077807 gui=none
160 hi Error guibg=bg guifg=#ee2c2c gui=none
161 hi Identifier guibg=bg guifg=#007080 gui=none
162 hi Ignore guibg=bg guifg=bg gui=none
163 hi lCursor guibg=#008000 guifg=#ffffff gui=none
164 hi MatchParen guibg=#00ffff gui=none
165 hi PreProc guibg=bg guifg=#800090 gui=none
166 hi Special guibg=bg guifg=#912f11 gui=none
167 hi Statement guibg=bg guifg=#1f3f81 gui=bold
168 hi Todo guibg=#ffff00 guifg=fg gui=none
169 hi Type guibg=bg guifg=#912f11 gui=bold
170 hi Underlined guibg=bg guifg=#0000cd gui=underline
171
172 hi htmlBold guibg=bg guifg=fg gui=bold
173 hi htmlItalic guibg=bg guifg=fg gui=italic
174 hi htmlUnderline guibg=bg guifg=fg gui=underline
175 hi htmlBoldItalic guibg=bg guifg=fg gui=bold,italic
176 hi htmlBoldUnderline guibg=bg guifg=fg gui=bold,underline
177 hi htmlBoldUnderlineItalic guibg=bg guifg=fg gui=bold,underline,italic
178 hi htmlUnderlineItalic guibg=bg guifg=fg gui=underline,italic
179 endif