gardener.vim 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. " Vim color file
  2. " Original Maintainer: Anders Korte <anderskorte@eml.cc>
  3. " Modified: by entheon <jazzworksweb@yahoo.com>
  4. " Last Change: 13 Sept 2005
  5. " Gardener v1.1
  6. " A modification of the Guardian colorscheme v1.2
  7. " 'For code surgeons and web gardeners everywhere'
  8. " A nice earthy color scheme which is easy on the eyes. It
  9. " has as it's base a dark background monocrhomatic khaki
  10. " scheme with dabs of color thrown in here and there on the
  11. " keywords. Plus lots of extra config options so you can
  12. " tweak it to your liking and or make it more like the
  13. " original Guardian scheme. All the defaults are what I like
  14. " but if you want to change stuff just set the right var and
  15. " it will change pretty much immediately, you might have to
  16. " move out of and back into your buffer for it to refresh.
  17. " Features:
  18. " 256 Color XTerm Compatibility
  19. " Richer Syntax
  20. " Black Background
  21. " Functions
  22. " No Italics
  23. " Purple Booleans
  24. " Swapped Status Line Colors
  25. " Other minor tweaks
  26. " Change Log:
  27. " changed the ghastly puke salmon red to green like it
  28. " should have been in the first place esp considering the
  29. " name Gardener, now all vimsters can truly frolic in
  30. " their Vim Gardens
  31. " Options:
  32. " g:gardener_light_comments
  33. " if this var exists then comments are white on a
  34. " gray-blue background if it is not set then the
  35. " comments default to medium grey with no background
  36. " color, I can't stand bg colors but some people might
  37. " like it, so I left it as an option.
  38. "
  39. " g:gardener_soil
  40. " This is a GUI only option because there are no
  41. " colors that work even in the 256 color XTerm. This
  42. " option gives you a brownish background instead of a
  43. " black background. I think the black background gives
  44. " better contrast and thus is easier to read from. if
  45. " you disagree then you've got this option
  46. "
  47. " g:gardener_setnum
  48. " turns the background of the line numbers black
  49. " Using The Options:
  50. " To enable a feature add the line
  51. " let g:gardenter_some_feature=1
  52. " to your ~/.vimrc
  53. " To disable the feature temporarily run the command
  54. " :unlet g:gardener_some_feature
  55. " To disable the feature permanently, simply remove
  56. " the line from your .vimrc file.
  57. set background=dark
  58. hi clear
  59. syntax reset
  60. if has("gui_running")
  61. " Colors for the User Interface.
  62. if exists("g:gardener_setnum")
  63. hi linenr guibg=black guifg=#808080 gui=bold
  64. else
  65. hi linenr guibg=#262626 guifg=#808080 gui=bold
  66. endif
  67. hi Cursor guibg=#cc4455 guifg=white gui=bold
  68. hi link CursorIM Cursor
  69. if exists("g:gardener_soil")
  70. hi Normal guibg=#332211 guifg=white gui=none
  71. else
  72. hi Normal guibg=black guifg=white gui=none
  73. endif
  74. hi NonText guibg=#445566 guifg=#ffeecc gui=bold
  75. hi Visual guibg=#557799 guifg=white gui=none
  76. hi Directory guibg=bg guifg=#337700 gui=none
  77. hi IncSearch guibg=#0066cc guifg=white gui=none
  78. hi link Seach IncSearch
  79. hi SpecialKey guibg=bg guifg=fg gui=none
  80. hi Titled guibg=bg guifg=fg gui=none
  81. hi ErrorMsg guibg=bg guifg=#ff0000 gui=bold
  82. hi ModeMsg guibg=bg guifg=#ffeecc gui=none
  83. hi link MoreMsg ModeMsg
  84. hi Question guibg=bg guifg=#ccffcc gui=bold
  85. hi link WarningMsg ErrorMsg
  86. hi StatusLineNC guibg=#ffeecc guifg=black gui=none
  87. hi StatusLine guibg=#cc4455 guifg=white gui=bold
  88. hi VertSplit guibg=#ffeecc guifg=black gui=none
  89. hi DiffAdd guibg=#446688 guifg=fg gui=none
  90. hi DiffChange guibg=#558855 guifg=fg gui=none
  91. hi DiffDelete guibg=#884444 guifg=fg gui=none
  92. hi DiffText guibg=#884444 guifg=fg gui=bold
  93. " Colors for Syntax Highlighting.
  94. if exists("g:gardener_light_comments")
  95. hi Comment guibg=#334455 guifg=#dddddd gui=none
  96. else
  97. hi Comment guibg=bg guifg=#888888 gui=none
  98. endif
  99. hi Define guibg=bg guifg=#66ccdd gui=bold
  100. hi Conditional guibg=bg guifg=#aadd55 gui=bold
  101. hi Constant guibg=bg guifg=white gui=bold
  102. hi Identifier guibg=bg guifg=#ffddaa gui=none
  103. hi String guibg=bg guifg=#ffffcc gui=none
  104. hi Character guibg=bg guifg=#ffffcc gui=bold
  105. hi Number guibg=bg guifg=#bbddff gui=bold
  106. hi Boolean guibg=bg guifg=#ff55ff gui=bold
  107. hi Float guibg=bg guifg=#bbddff gui=bold
  108. hi Function guibg=bg guifg=#ffffaa gui=bold
  109. hi Statement guibg=bg guifg=#ffffcc gui=bold
  110. hi Repeat guibg=bg guifg=#ff9900 gui=bold
  111. hi Label guibg=bg guifg=#ffccff gui=bold
  112. hi Operator guibg=bg guifg=#cc9966 gui=bold
  113. hi Keyword guibg=bg guifg=#66ffcc gui=bold
  114. hi Exception guibg=bg guifg=#66ffcc gui=bold
  115. hi PreProc guibg=bg guifg=#ffcc99 gui=bold
  116. hi Include guibg=bg guifg=#99cc99 gui=bold
  117. hi link Macro Include
  118. hi link PreCondit Include
  119. hi Type guibg=bg guifg=#ccffaa gui=bold
  120. hi Structure guibg=bg guifg=#99ff99 gui=bold
  121. hi Typedef guibg=bg guifg=#99cc99 gui=italic
  122. hi StorageClass guibg=bg guifg=#99cc99 gui=bold
  123. hi Special guibg=bg guifg=#bbddff gui=bold
  124. hi SpecialChar guibg=bg guifg=#bbddff gui=bold
  125. hi Tag guibg=bg guifg=#bbddff gui=bold
  126. hi Delimiter guibg=bg guifg=fg gui=bold
  127. hi SpecialComment guibg=#334455 guifg=#dddddd gui=italic
  128. hi Debug guibg=bg guifg=#ff9999 gui=none
  129. hi Underlined guibg=bg guifg=#99ccff gui=underline
  130. hi Title guibg=#445566 guifg=white gui=bold
  131. hi Ignore guibg=bg guifg=#cccccc gui=italic
  132. hi Error guibg=#ff0000 guifg=white gui=bold
  133. hi Todo guibg=#556677 guifg=#ff0000 gui=bold
  134. hi htmlH1 guibg=bg guifg=#ffffff gui=bold
  135. hi htmlH2 guibg=bg guifg=#dadada gui=bold
  136. hi htmlH3 guibg=bg guifg=#c6c6c6 gui=bold
  137. hi htmlH4 guibg=bg guifg=#b2b2b2 gui=bold
  138. hi htmlH5 guibg=bg guifg=#9e9e9e gui=bold
  139. hi htmlH6 guibg=bg guifg=#8a8a8a gui=bold
  140. else
  141. " Colors for the User Interface.
  142. if exists("g:gardener_setnum")
  143. exec "hi linenr cterm=BOLD ctermfg=235 ctermbg=244"
  144. else
  145. exec "hi linenr cterm=BOLD ctermfg=244 ctermbg=235"
  146. endif
  147. exec "hi Cursor cterm=BOLD ctermfg=255 ctermbg=167"
  148. exec "hi CursorIM cterm=BOLD ctermfg=255 ctermbg=167"
  149. exec "hi Normal cterm=NONE ctermfg=255 ctermbg=233"
  150. exec "hi NonText cterm=NONE ctermfg=230 ctermbg=60"
  151. exec "hi Visual cterm=NONE ctermfg=255 ctermbg=68"
  152. exec "hi Linear cterm=NONE ctermfg=248 ctermbg=NONE"
  153. exec "hi Directory cterm=NONE ctermfg=64 ctermbg=NONE"
  154. exec "hi IncSearch cterm=NONE ctermfg=255 ctermbg=25"
  155. exec "hi ErrorMsg cterm=BOLD ctermfg=196 ctermbg=NONE"
  156. exec "hi WarningMsg cterm=BOLD ctermfg=196 ctermbg=NONE"
  157. exec "hi ModeMsg cterm=NONE ctermfg=230 ctermbg=NONE"
  158. exec "hi MoreMsg cterm=NONE ctermfg=230 ctermbg=NONE"
  159. exec "hi Question cterm=NONE ctermfg=194 ctermbg=NONE"
  160. exec "hi StatusLineNC cterm=NONE ctermfg=16 ctermbg=229"
  161. exec "hi StatusLine cterm=BOLD ctermfg=255 ctermbg=167"
  162. exec "hi VertSplit cterm=NONE ctermfg=16 ctermbg=229"
  163. exec "hi DiffAdd cterm=NONE ctermfg=255 ctermbg=60"
  164. exec "hi DiffAdd cterm=NONE ctermfg=255 ctermbg=65"
  165. exec "hi DiffAdd cterm=NONE ctermfg=255 ctermbg=95"
  166. exec "hi DiffAdd cterm=BOLD ctermfg=255 ctermbg=95"
  167. " Colors for Syntax Highlighting.
  168. if exists("g:gardener_light_comments")
  169. exec "hi Comment cterm=NONE ctermfg=253 ctermbg=60"
  170. else
  171. exec "hi Comment cterm=NONE ctermfg=244 ctermbg=NONE"
  172. endif
  173. exec "hi Constant cterm=BOLD ctermfg=255 ctermbg=NONE"
  174. exec "hi String cterm=NONE ctermfg=230 ctermbg=NONE"
  175. exec "hi Character cterm=BOLD ctermfg=230 ctermbg=NONE"
  176. exec "hi Number cterm=BOLD ctermfg=153 ctermbg=NONE"
  177. exec "hi Boolean cterm=NONE ctermfg=207 ctermbg=NONE"
  178. exec "hi Float cterm=BOLD ctermfg=153 ctermbg=NONE"
  179. exec "hi Identifier cterm=NONE ctermfg=223 ctermbg=NONE"
  180. exec "hi Function cterm=BOLD ctermfg=229 ctermbg=NONE"
  181. exec "hi Statement cterm=BOLD ctermfg=230 ctermbg=NONE"
  182. exec "hi Define cterm=BOLD ctermfg=68 ctermbg=NONE"
  183. exec "hi Conditional cterm=BOLD ctermfg=149 ctermbg=NONE"
  184. exec "hi Repeat cterm=BOLD ctermfg=208 ctermbg=NONE"
  185. exec "hi Label cterm=BOLD ctermfg=225 ctermbg=NONE"
  186. exec "hi Operator cterm=BOLD ctermfg=173 ctermbg=NONE"
  187. exec "hi Keyword cterm=BOLD ctermfg=86 ctermbg=NONE"
  188. exec "hi Exception cterm=BOLD ctermfg=86 ctermbg=NONE"
  189. exec "hi PreProc cterm=BOLD ctermfg=222 ctermbg=NONE"
  190. exec "hi Include cterm=BOLD ctermfg=114 ctermbg=NONE"
  191. exec "hi Macro cterm=BOLD ctermfg=114 ctermbg=NONE"
  192. exec "hi PreCondit cterm=BOLD ctermfg=114 ctermbg=NONE"
  193. exec "hi Type cterm=BOLD ctermfg=193 ctermbg=NONE"
  194. exec "hi StorageClass cterm=BOLD ctermfg=78 ctermbg=NONE"
  195. exec "hi Structure cterm=BOLD ctermfg=114 ctermbg=NONE"
  196. exec "hi Typedef cterm=BOLD ctermfg=114 ctermbg=NONE"
  197. exec "hi Special cterm=BOLD ctermfg=153 ctermbg=NONE"
  198. exec "hi SpecialChar cterm=BOLD ctermfg=153 ctermbg=NONE"
  199. exec "hi Tag cterm=BOLD ctermfg=153 ctermbg=NONE"
  200. exec "hi Delimiter cterm=BOLD ctermfg=255 ctermbg=NONE"
  201. exec "hi SpecialComment cterm=BOLD ctermfg=253 ctermbg=24"
  202. exec "hi Debug cterm=NONE ctermfg=210 ctermbg=NONE"
  203. exec "hi Title cterm=BOLD ctermfg=255 ctermbg=60"
  204. exec "hi Ignore cterm=NONE ctermfg=251 ctermbg=NONE"
  205. exec "hi Error cterm=NONE ctermfg=255 ctermbg=196"
  206. exec "hi Ignore cterm=NONE ctermfg=196 ctermbg=60"
  207. exec "hi htmlH1 cterm=BOLD ctermfg=255 ctermbg=NONE"
  208. exec "hi htmlH2 cterm=BOLD ctermfg=253 ctermbg=NONE"
  209. exec "hi htmlH3 cterm=BOLD ctermfg=251 ctermbg=NONE"
  210. exec "hi htmlH4 cterm=BOLD ctermfg=249 ctermbg=NONE"
  211. exec "hi htmlH5 cterm=BOLD ctermfg=247 ctermbg=NONE"
  212. exec "hi htmlH6 cterm=BOLD ctermfg=245 ctermbg=NONE"
  213. endif
  214. " And finally.
  215. let g:colors_name = "gardener"
  216. let colors_name = "gardener"