pf_earth.vim 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. " Vim color file
  2. " Name: pf_earch
  3. set background=dark
  4. hi clear
  5. if exists("syntax_on")
  6. syntax reset
  7. endif
  8. let colors_name = "pf_earth"
  9. " map a urxvt cube number to an xterm-256 cube number
  10. fun! <SID>M(a)
  11. return strpart("0135", a:a, 1) + 0
  12. endfun
  13. " map a urxvt colour to an xterm-256 colour
  14. fun! <SID>X(a)
  15. if &t_Co == 88
  16. return a:a
  17. else
  18. if a:a == 8
  19. return 237
  20. elseif a:a < 16
  21. return a:a
  22. elseif a:a > 79
  23. return 232 + (3 * (a:a - 80))
  24. else
  25. let l:b = a:a - 16
  26. let l:x = l:b % 4
  27. let l:y = (l:b / 4) % 4
  28. let l:z = (l:b / 16)
  29. return 16 + <SID>M(l:x) + (6 * <SID>M(l:y)) + (36 * <SID>M(l:z))
  30. endif
  31. endif
  32. endfun
  33. if has("gui_running")
  34. hi Normal gui=NONE guifg=#E7FFD8 guibg=#262320
  35. hi IncSearch guifg=#66ffff gui=reverse
  36. hi Search guifg=#000000 guibg=#cae682 ctermfg=0 ctermbg=195
  37. hi ErrorMsg gui=BOLD guifg=#ffffff guibg=#ff3300
  38. hi WarningMsg gui=BOLD guifg=#ffffff guibg=#ff6600
  39. hi ModeMsg gui=BOLD guifg=#7e7eae guibg=NONE
  40. hi MoreMsg gui=BOLD guifg=#7e7eae guibg=NONE
  41. hi Question gui=BOLD guifg=#ffcd00 guibg=NONE
  42. hi StatusLine gui=NONE guifg=#b9b9b9 guibg=#2F2A26
  43. hi StatusLineNC gui=NONE guifg=#474A39 guibg=#2F2A26
  44. hi VertSplit gui=NONE guifg=#b9b9b9 guibg=#3e3e5e
  45. hi WildMenu gui=BOLD guifg=#ffcd00 guibg=#1e1e2e
  46. hi DiffText gui=NONE guifg=#ffffcd guibg=#00cd00
  47. hi DiffChange gui=NONE guifg=#ffffcd guibg=#008bff
  48. hi DiffDelete gui=NONE guifg=#ffffcd guibg=#cd0000
  49. hi DiffAdd gui=NONE guifg=#ffffcd guibg=#00cd00
  50. hi Cursor gui=NONE guifg=#404040 guibg=#D78332
  51. hi lCursor gui=NONE guifg=#404040 guibg=#8b8bff
  52. hi CursorIM gui=NONE guifg=#404040 guibg=#8b8bff
  53. hi CursorLine gui=NONE guibg=#222725 gui=none
  54. hi Folded gui=NONE guifg=#cfcfcd guibg=#4b208f
  55. hi FoldColumn gui=NONE guifg=#8b8bcd guibg=#2e2e2e
  56. hi Directory gui=NONE guifg=#00ff8b guibg=NONE
  57. hi LineNr gui=NONE guifg=#595A48 guibg=#2E2A26
  58. hi NonText gui=BOLD guifg=#8b8bcd guibg=NONE
  59. hi SpecialKey gui=BOLD guifg=#8b00cd guibg=NONE
  60. hi Title gui=BOLD guifg=#af4f4b guibg=#1e1e27
  61. hi Visual guifg=NONE guibg=#364458
  62. hi Comment gui=italic guifg=#4F4B42
  63. hi Constant gui=NONE guifg=#ffcd8b guibg=NONE
  64. hi Boolean gui=italic guifg=#B15A40 guibg=NONE
  65. hi String guifg=#B99B74 gui=none
  66. hi Error gui=NONE guifg=#ffffff guibg=#ff0000
  67. hi Identifier gui=NONE guifg=#CEB429 guibg=NONE
  68. hi Ignore gui=NONE guifg=#8b8bcd guibg=NONE
  69. "hi Number gui=NONE guifg=#506dbd guibg=NONE
  70. hi Number guifg=#C0E06C ctermfg=207
  71. " def/end
  72. hi PreProc gui=NONE guifg=#838861 guibg=NONE
  73. hi Special gui=NONE guifg=#c080d0 guibg=NONE
  74. " do/end
  75. hi Statement gui=NONE guifg=#5FE8D0 guibg=NONE
  76. hi Operator gui=NONE guifg=#828A66 guibg=NONE
  77. "hi Todo gui=BOLD guifg=#303030 guibg=#c080d0
  78. "hi Todo guifg=#efef8f guibg=NONE gui=underline
  79. hi Todo guifg=#FFFFFF guibg=bg gui=bold
  80. hi Type gui=NONE guifg=#ff8bff guibg=NONE
  81. hi Underlined gui=BOLD guifg=#ffffcd guibg=NONE
  82. hi TaglistTagName gui=BOLD guifg=#808bed guibg=NONE
  83. " match parenthesis, brackets
  84. hi MatchParen guifg=#00ff00 guibg=NONE gui=bold
  85. hi MatchParen ctermfg=46 ctermbg=NONE cterm=bold
  86. " Popup Menu
  87. " ----------
  88. " normal item in popup
  89. hi Pmenu guifg=#e0e0e0 guibg=#303840 gui=none
  90. hi Pmenu ctermfg=253 ctermbg=233 cterm=none
  91. " selected item in popup
  92. hi PmenuSel guifg=#cae682 guibg=#505860 gui=none
  93. hi PmenuSel ctermfg=186 ctermbg=237 cterm=none
  94. " scrollbar in popup
  95. hi PMenuSbar guibg=#505860 gui=none
  96. hi PMenuSbar ctermbg=59 cterm=none
  97. " thumb of the scrollbar in the popup
  98. hi PMenuThumb guibg=#808890 gui=none
  99. hi PMenuThumb ctermbg=102 cterm=none
  100. " Ruby Highlighting
  101. hi rubySymbol guifg=#DA8332 gui=italic
  102. hi rubyClass guifg=#b3d38c gui=italic
  103. hi rubyGlobalVariable guifg=#45B6DC
  104. hi rubyClassVariable guifg=#CB9064
  105. hi rubyInstanceVariable guifg=#C3BF55
  106. hi rubyConstant guifg=#8EB564 gui=italic
  107. hi rubyBlockParameter guifg=#CC6BDC
  108. hi link rubyClass Keyword
  109. hi link rubyModule Keyword
  110. hi link rubyOperator Operator
  111. hi link rubyIdentifier Identifier
  112. hi rubyRegexp guifg=#B18A3D ctermfg=brown
  113. hi rubyRegexpDelimiter guifg=#FF8000 ctermfg=brown
  114. "hi rubyFunction guifg=#0066bb gui=bold
  115. "hi rubyKeyword guifg=#66cd66
  116. "hi rubyIndentifier guifg=#008aff
  117. "hi rubyGlobalVariable guifg=#dd7700
  118. "hi rubyPredefinedIdentifier guifg=#555555 gui=bold
  119. "hi rubyString guifg=#0086d2
  120. "hi rubyStringDelimiter guifg=#dd7700
  121. "hi rubySpaceError guibg=#270000
  122. "hi rubyDocumentation guifg=#aaaaaa
  123. "hi rubyData guifg=#555555
  124. else
  125. exec "hi Normal cterm=NONE ctermfg=" . <SID>X("78") . " ctermbg=" . <SID>X(80) . ""
  126. exec "hi IncSearch cterm=BOLD ctermfg=" . <SID>X("80") . " ctermbg=" . <SID>X(73) . ""
  127. exec "hi Search cterm=NONE ctermfg=" . <SID>X("80") . " ctermbg=" . <SID>X(73) . ""
  128. exec "hi ErrorMsg cterm=BOLD ctermfg=" . <SID>X("79") . " ctermbg=" . <SID>X(64) . ""
  129. exec "hi WarningMsg cterm=BOLD ctermfg=" . <SID>X("79") . " ctermbg=" . <SID>X(68) . ""
  130. exec "hi ModeMsg cterm=BOLD ctermfg=" . <SID>X("39") . ""
  131. exec "hi MoreMsg cterm=BOLD ctermfg=" . <SID>X("39") . ""
  132. exec "hi Question cterm=BOLD ctermfg=" . <SID>X("72") . ""
  133. exec "hi StatusLine cterm=BOLD ctermfg=" . <SID>X("84") . " ctermbg=" . <SID>X(81) . ""
  134. exec "hi StatusLineNC cterm=NONE ctermfg=" . <SID>X("84") . " ctermbg=" . <SID>X(81) . ""
  135. exec "hi VertSplit cterm=NONE ctermfg=" . <SID>X("84") . " ctermbg=" . <SID>X(82) . ""
  136. exec "hi WildMenu cterm=BOLD ctermfg=" . <SID>X("72") . " ctermbg=" . <SID>X(80) . ""
  137. exec "hi DiffText cterm=NONE ctermfg=" . <SID>X("78") . " ctermbg=" . <SID>X(24) . ""
  138. exec "hi DiffChange cterm=NONE ctermfg=" . <SID>X("78") . " ctermbg=" . <SID>X(23) . ""
  139. exec "hi DiffDelete cterm=NONE ctermfg=" . <SID>X("78") . " ctermbg=" . <SID>X(48) . ""
  140. exec "hi DiffAdd cterm=NONE ctermfg=" . <SID>X("78") . " ctermbg=" . <SID>X(24) . ""
  141. exec "hi Cursor cterm=NONE ctermfg=" . <SID>X("8") . " ctermbg=" . <SID>X(39) . ""
  142. exec "hi lCursor cterm=NONE ctermfg=" . <SID>X("8") . " ctermbg=" . <SID>X(39) . ""
  143. exec "hi CursorIM cterm=NONE ctermfg=" . <SID>X("8") . " ctermbg=" . <SID>X(39) . ""
  144. exec "hi Folded cterm=NONE ctermfg=" . <SID>X("78") . " ctermbg=" . <SID>X(35) . ""
  145. exec "hi FoldColumn cterm=NONE ctermfg=" . <SID>X("38") . " ctermbg=" . <SID>X(80) . ""
  146. exec "hi Directory cterm=NONE ctermfg=" . <SID>X("29") . " ctermbg=NONE"
  147. exec "hi LineNr cterm=NONE ctermfg=" . <SID>X("38") . " ctermbg=" . <SID>X(80) . ""
  148. exec "hi NonText cterm=BOLD ctermfg=" . <SID>X("38") . " ctermbg=NONE"
  149. exec "hi SpecialKey cterm=BOLD ctermfg=" . <SID>X("34") . " ctermbg=NONE"
  150. exec "hi Title cterm=BOLD ctermfg=" . <SID>X("52") . " ctermbg=" . <SID>X(80) . ""
  151. exec "hi Visual cterm=NONE ctermfg=" . <SID>X("80") . " ctermbg=" . <SID>X(73) . ""
  152. exec "hi Comment cterm=NONE ctermfg=" . <SID>X("52") . " ctermbg=NONE"
  153. exec "hi Constant cterm=NONE ctermfg=" . <SID>X("73") . " ctermbg=NONE"
  154. exec "hi String cterm=NONE ctermfg=" . <SID>X("73") . " ctermbg=" . <SID>X(8) . ""
  155. exec "hi Error cterm=NONE ctermfg=" . <SID>X("79") . " ctermbg=" . <SID>X(64) . ""
  156. exec "hi Identifier cterm=NONE ctermfg=" . <SID>X("71") . " ctermbg=NONE"
  157. exec "hi Ignore cterm=NONE ctermfg=" . <SID>X("38") . " ctermbg=NONE"
  158. exec "hi Number cterm=NONE ctermfg=" . <SID>X("22") . " ctermbg=NONE"
  159. exec "hi PreProc cterm=NONE ctermfg=" . <SID>X("10") . " ctermbg=NONE"
  160. exec "hi Special cterm=NONE ctermfg=" . <SID>X("39") . " ctermbg=NONE"
  161. exec "hi Statement cterm=NONE ctermfg=" . <SID>X("26") . " ctermbg=NONE"
  162. exec "hi Todo cterm=BOLD ctermfg=" . <SID>X("08") . " ctermbg=" . <SID>X(39) . ""
  163. exec "hi Type cterm=NONE ctermfg=" . <SID>X("71") . " ctermbg=NONE"
  164. exec "hi Underlined cterm=BOLD ctermfg=" . <SID>X("78") . " ctermbg=NONE"
  165. exec "hi TaglistTagName cterm=BOLD ctermfg=" . <SID>X("26") . " ctermbg=NONE"
  166. endif
  167. " vim: set et :