molokai.vim 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. " Vim color file
  2. "
  3. " Author: Tomas Restrepo <tomas@winterdom.com>
  4. " https://github.com/tomasr/molokai
  5. "
  6. " Note: Based on the Monokai theme for TextMate
  7. " by Wimer Hazenberg and its darker variant
  8. " by Hamish Stuart Macpherson
  9. "
  10. hi clear
  11. if version > 580
  12. " no guarantees for version 5.8 and below, but this makes it stop
  13. " complaining
  14. hi clear
  15. if exists("syntax_on")
  16. syntax reset
  17. endif
  18. endif
  19. let g:colors_name="molokai"
  20. if exists("g:molokai_original")
  21. let s:molokai_original = g:molokai_original
  22. else
  23. let s:molokai_original = 0
  24. endif
  25. hi Boolean guifg=#AE81FF
  26. hi Character guifg=#E6DB74
  27. hi Number guifg=#AE81FF
  28. hi String guifg=#E6DB74
  29. hi Conditional guifg=#F92672 gui=bold
  30. hi Constant guifg=#AE81FF gui=bold
  31. hi Cursor guifg=#000000 guibg=#F8F8F0
  32. hi iCursor guifg=#000000 guibg=#F8F8F0
  33. hi Debug guifg=#BCA3A3 gui=bold
  34. hi Define guifg=#66D9EF
  35. hi Delimiter guifg=#8F8F8F
  36. hi DiffAdd guibg=#13354A
  37. hi DiffChange guifg=#89807D guibg=#4C4745
  38. hi DiffDelete guifg=#960050 guibg=#1E0010
  39. hi DiffText guibg=#4C4745 gui=italic,bold
  40. hi Directory guifg=#A6E22E gui=bold
  41. hi Error guifg=#E6DB74 guibg=#1E0010
  42. hi ErrorMsg guifg=#F92672 guibg=#232526 gui=bold
  43. hi Exception guifg=#A6E22E gui=bold
  44. hi Float guifg=#AE81FF
  45. hi FoldColumn guifg=#465457 guibg=#000000
  46. hi Folded guifg=#465457 guibg=#000000
  47. hi Function guifg=#A6E22E
  48. hi Identifier guifg=#FD971F
  49. hi Ignore guifg=#808080 guibg=bg
  50. hi IncSearch guifg=#C4BE89 guibg=#000000
  51. hi Keyword guifg=#F92672 gui=bold
  52. hi Label guifg=#E6DB74 gui=none
  53. hi Macro guifg=#C4BE89 gui=italic
  54. hi SpecialKey guifg=#66D9EF gui=italic
  55. hi MatchParen guifg=#000000 guibg=#FD971F gui=bold
  56. hi ModeMsg guifg=#E6DB74
  57. hi MoreMsg guifg=#E6DB74
  58. hi Operator guifg=#F92672
  59. " complete menu
  60. hi Pmenu guifg=#66D9EF guibg=#000000
  61. hi PmenuSel guibg=#808080
  62. hi PmenuSbar guibg=#080808
  63. hi PmenuThumb guifg=#66D9EF
  64. hi PreCondit guifg=#A6E22E gui=bold
  65. hi PreProc guifg=#A6E22E
  66. hi Question guifg=#66D9EF
  67. hi Repeat guifg=#F92672 gui=bold
  68. hi Search guifg=#000000 guibg=#FFE792
  69. " marks
  70. hi SignColumn guifg=#A6E22E guibg=#232526
  71. hi SpecialChar guifg=#F92672 gui=bold
  72. hi SpecialComment guifg=#7E8E91 gui=bold
  73. hi Special guifg=#66D9EF guibg=bg gui=italic
  74. if has("spell")
  75. hi SpellBad guisp=#FF0000 gui=undercurl
  76. hi SpellCap guisp=#7070F0 gui=undercurl
  77. hi SpellLocal guisp=#70F0F0 gui=undercurl
  78. hi SpellRare guisp=#FFFFFF gui=undercurl
  79. endif
  80. hi Statement guifg=#F92672 gui=bold
  81. hi StatusLine guifg=#455354 guibg=fg
  82. hi StatusLineNC guifg=#808080 guibg=#080808
  83. hi StorageClass guifg=#FD971F gui=italic
  84. hi Structure guifg=#66D9EF
  85. hi Tag guifg=#F92672 gui=italic
  86. hi Title guifg=#ef5939
  87. hi Todo guifg=#FFFFFF guibg=bg gui=bold
  88. hi Typedef guifg=#66D9EF
  89. hi Type guifg=#66D9EF gui=none
  90. hi Underlined guifg=#808080 gui=underline
  91. hi VertSplit guifg=#808080 guibg=#080808 gui=bold
  92. hi VisualNOS guibg=#403D3D
  93. hi Visual guibg=#403D3D
  94. hi WarningMsg guifg=#FFFFFF guibg=#333333 gui=bold
  95. hi WildMenu guifg=#66D9EF guibg=#000000
  96. hi TabLineFill guifg=#1B1D1E guibg=#1B1D1E
  97. hi TabLine guibg=#1B1D1E guifg=#808080 gui=none
  98. if s:molokai_original == 1
  99. hi Normal guifg=#F8F8F2 guibg=#272822
  100. hi Comment guifg=#75715E
  101. hi CursorLine guibg=#3E3D32
  102. hi CursorLineNr guifg=#FD971F gui=none
  103. hi CursorColumn guibg=#3E3D32
  104. hi ColorColumn guibg=#3B3A32
  105. hi LineNr guifg=#BCBCBC guibg=#3B3A32
  106. hi NonText guifg=#75715E
  107. hi SpecialKey guifg=#75715E
  108. else
  109. hi Normal guifg=#F8F8F2 guibg=#1B1D1E
  110. hi Comment guifg=#7E8E91
  111. hi CursorLine guibg=#293739
  112. hi CursorLineNr guifg=#FD971F gui=none
  113. hi CursorColumn guibg=#293739
  114. hi ColorColumn guibg=#232526
  115. hi LineNr guifg=#465457 guibg=#232526
  116. hi NonText guifg=#465457
  117. hi SpecialKey guifg=#465457
  118. end
  119. "
  120. " Support for 256-color terminal
  121. "
  122. if &t_Co > 255
  123. if s:molokai_original == 1
  124. hi Normal ctermbg=234
  125. hi CursorLine ctermbg=235 cterm=none
  126. hi CursorLineNr ctermfg=208 cterm=none
  127. else
  128. hi Normal ctermfg=252 ctermbg=233
  129. hi CursorLine ctermbg=234 cterm=none
  130. hi CursorLineNr ctermfg=208 cterm=none
  131. endif
  132. hi Boolean ctermfg=135
  133. hi Character ctermfg=144
  134. hi Number ctermfg=135
  135. hi String ctermfg=144
  136. hi Conditional ctermfg=161 cterm=bold
  137. hi Constant ctermfg=135 cterm=bold
  138. hi Cursor ctermfg=16 ctermbg=253
  139. hi Debug ctermfg=225 cterm=bold
  140. hi Define ctermfg=81
  141. hi Delimiter ctermfg=241
  142. hi DiffAdd ctermbg=24
  143. hi DiffChange ctermfg=181 ctermbg=239
  144. hi DiffDelete ctermfg=162 ctermbg=53
  145. hi DiffText ctermbg=102 cterm=bold
  146. hi Directory ctermfg=118 cterm=bold
  147. hi Error ctermfg=219 ctermbg=89
  148. hi ErrorMsg ctermfg=199 ctermbg=16 cterm=bold
  149. hi Exception ctermfg=118 cterm=bold
  150. hi Float ctermfg=135
  151. hi FoldColumn ctermfg=67 ctermbg=16
  152. hi Folded ctermfg=67 ctermbg=16
  153. hi Function ctermfg=118
  154. hi Identifier ctermfg=208 cterm=none
  155. hi Ignore ctermfg=244 ctermbg=232
  156. hi IncSearch ctermfg=193 ctermbg=16
  157. hi keyword ctermfg=161 cterm=bold
  158. hi Label ctermfg=229 cterm=none
  159. hi Macro ctermfg=193
  160. hi SpecialKey ctermfg=81
  161. hi MatchParen ctermfg=233 ctermbg=208 cterm=bold
  162. hi ModeMsg ctermfg=229
  163. hi MoreMsg ctermfg=229
  164. hi Operator ctermfg=161
  165. " complete menu
  166. hi Pmenu ctermfg=81 ctermbg=16
  167. hi PmenuSel ctermfg=255 ctermbg=242
  168. hi PmenuSbar ctermbg=232
  169. hi PmenuThumb ctermfg=81
  170. hi PreCondit ctermfg=118 cterm=bold
  171. hi PreProc ctermfg=118
  172. hi Question ctermfg=81
  173. hi Repeat ctermfg=161 cterm=bold
  174. hi Search ctermfg=0 ctermbg=222 cterm=NONE
  175. " marks column
  176. hi SignColumn ctermfg=118 ctermbg=235
  177. hi SpecialChar ctermfg=161 cterm=bold
  178. hi SpecialComment ctermfg=245 cterm=bold
  179. hi Special ctermfg=81
  180. if has("spell")
  181. hi SpellBad ctermbg=52
  182. hi SpellCap ctermbg=17
  183. hi SpellLocal ctermbg=17
  184. hi SpellRare ctermfg=none ctermbg=none cterm=reverse
  185. endif
  186. hi Statement ctermfg=161 cterm=bold
  187. hi StatusLine ctermfg=238 ctermbg=253
  188. hi StatusLineNC ctermfg=244 ctermbg=232
  189. hi StorageClass ctermfg=208
  190. hi Structure ctermfg=81
  191. hi Tag ctermfg=161
  192. hi Title ctermfg=166
  193. hi Todo ctermfg=231 ctermbg=232 cterm=bold
  194. hi Typedef ctermfg=81
  195. hi Type ctermfg=81 cterm=none
  196. hi Underlined ctermfg=244 cterm=underline
  197. hi VertSplit ctermfg=244 ctermbg=232 cterm=bold
  198. hi VisualNOS ctermbg=238
  199. hi Visual ctermbg=235
  200. hi WarningMsg ctermfg=231 ctermbg=238 cterm=bold
  201. hi WildMenu ctermfg=81 ctermbg=16
  202. hi Comment ctermfg=59
  203. hi CursorColumn ctermbg=236
  204. hi ColorColumn ctermbg=236
  205. hi LineNr ctermfg=250 ctermbg=236
  206. hi NonText ctermfg=59
  207. hi SpecialKey ctermfg=59
  208. if exists("g:rehash256") && g:rehash256 == 1
  209. hi Normal ctermfg=252 ctermbg=234
  210. hi CursorLine ctermbg=236 cterm=none
  211. hi CursorLineNr ctermfg=208 cterm=none
  212. hi Boolean ctermfg=141
  213. hi Character ctermfg=222
  214. hi Number ctermfg=141
  215. hi String ctermfg=222
  216. hi Conditional ctermfg=197 cterm=bold
  217. hi Constant ctermfg=141 cterm=bold
  218. hi DiffDelete ctermfg=125 ctermbg=233
  219. hi Directory ctermfg=154 cterm=bold
  220. hi Error ctermfg=222 ctermbg=233
  221. hi Exception ctermfg=154 cterm=bold
  222. hi Float ctermfg=141
  223. hi Function ctermfg=154
  224. hi Identifier ctermfg=208
  225. hi Keyword ctermfg=197 cterm=bold
  226. hi Operator ctermfg=197
  227. hi PreCondit ctermfg=154 cterm=bold
  228. hi PreProc ctermfg=154
  229. hi Repeat ctermfg=197 cterm=bold
  230. hi Statement ctermfg=197 cterm=bold
  231. hi Tag ctermfg=197
  232. hi Title ctermfg=203
  233. hi Visual ctermbg=238
  234. hi Comment ctermfg=244
  235. hi LineNr ctermfg=239 ctermbg=235
  236. hi NonText ctermfg=239
  237. hi SpecialKey ctermfg=239
  238. endif
  239. end
  240. " Must be at the end, because of ctermbg=234 bug.
  241. " https://groups.google.com/forum/#!msg/vim_dev/afPqwAFNdrU/nqh6tOM87QUJ
  242. set background=dark