kalt.vim 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. "==============================================================================.
  2. " File: kalt.vim |
  3. " License: Public Domain, FREE as LOVE. |
  4. " Description: A cold colorscheme for GVIM/VIM without bold, italic nor |
  5. " underline font styles (except for spell checking and some GUI |
  6. " elements). On VIM it uses a black background. |
  7. " Note: - Only standard (for all languages) highlight-groups are set. |
  8. " - This colorscheme _should_ look nice everywhere. |
  9. "==============================================================================|
  10. " Author: drachenkiraa, {_drachen_kiraa_}@{_gmail_}.{com_} (remove: _{}) |
  11. " Last Change: 2009 Jul 1 |
  12. " Version: 1.1 |
  13. "==========================================================================={{{1
  14. " Thanks: |
  15. " Starwing Wesley, for telling me that the Cursor disappeared when moving it |
  16. " on a Comment (in gnome-terminal). |
  17. " Changes: |
  18. " 1.0: Public release. |
  19. " 1.1: FIX: Cursor disappeared when moving it in a Comment. This ONLY |
  20. " happened on one terminal (gnome-terminal). Now the Comment ctermfg |
  21. " color is DarkGreen for all 8 color Xterms. But you'll still get the |
  22. " original color (DarkGray) if your terminal supports more colors |
  23. " (or if you set 't_Co' [look below in "Random Tips"]). |
  24. " Changed 'Cursor', 'CursorLine', 'CursorColumn' colors to DarkBlue |
  25. " instead of the ugly Green. |
  26. " Changed 'SpellRare' guifg color from Magenta to DarkMagenta. |
  27. " Changed 'IncSearch' guifg color from LighMagenta to Green. |
  28. " Changed 'PreCondit' guifg color to a Darker Yellow color. |
  29. " Changed 'Special' guifg color from Blue to a Dark Red color. |
  30. " Set ctermfg and guifg options of 'Search' and 'IncSearch' to the |
  31. " background color. |
  32. " Made 'Character' guifg color more brighter. |
  33. " Changed 'Special' guifg color from Blue to a nice Red color. |
  34. "==============================================================================|
  35. " Color Test: :he group-name |
  36. " :so $VIMRUNTIME/syntax/hitest.vim |
  37. " Tested On: - Linux (gvim v6.3, v6.4); |
  38. " - Standard Linux Terminal (vim v6.3, v6.4); |
  39. " - Xterm, Rxvt, Konsole, gnome-terminal (vim v6.3, v6.4). |
  40. " - Windows (gvim v7.1, v7.2); |
  41. " - DOS (vim v7.1, v7.2). |
  42. " TODO: * Test this colorscheme on newer versions of vim/gvim for Linux |
  43. " and other systems (*BSD, Mac, Amiga?). |
  44. " * Are all the has("feature") checks really worth? |
  45. " Please enlighten me if I'm wrong. |
  46. "==============================================================================|
  47. " Random Tips: |
  48. " * If your terminal supports more than 8 colors (which is the case of most |
  49. " modern xterms, rxvts, and others), then it is worth adding the following |
  50. " lines somewhere into your .vimrc: |
  51. " if &term =~ "xterm" |
  52. " set t_Co=16 |
  53. " endif |
  54. " That'll make this colorscheme look a lot better on such terminals. |
  55. " For further help checkout: |
  56. " :he term-dependent-settings |
  57. " :he term |
  58. "===========================================================================}}}1
  59. " Initial setup stuff {{{1
  60. " Remove existing highlighting
  61. if has("gui_running")
  62. set background=light
  63. else
  64. set background=dark
  65. endif
  66. hi clear
  67. if exists("syntax_on")
  68. syntax reset
  69. endif
  70. let g:colors_name = "kalt"
  71. hi Normal ctermbg=Black ctermfg=Gray cterm=NONE guibg=#eaeaea guifg=Black gui=none
  72. " Vim >= 7.0 specific colors {{{1
  73. if v:version >= 700
  74. " Cursor colors {{{2
  75. hi Cursor ctermbg=DarkBlue ctermfg=fg guibg=DarkBlue guifg=bg gui=none
  76. hi CursorLine ctermbg=DarkBlue guibg=#ccccff gui=none
  77. hi CursorColumn ctermbg=DarkBlue guibg=#ccccff gui=none
  78. " only for Win32, IME status
  79. if has('multi_byte_ime')
  80. hi CursorIM guibg=DarkMagenta guifg=NONE gui=none
  81. endif
  82. " Auto-completion Popup Menu colors {{{2
  83. hi Pmenu ctermbg=DarkCyan ctermfg=bg cterm=NONE guibg=#9999cc guifg=fg gui=none
  84. hi PmenuSel ctermbg=DarkBlue ctermfg=fg cterm=NONE guibg=#333399 guifg=bg gui=none
  85. hi PmenuSbar ctermbg=DarkBlue ctermfg=DarkBlue cterm=NONE guibg=#333399 guifg=fg gui=none
  86. hi PmenuThumb ctermbg=Gray ctermfg=Gray cterm=NONE guibg=#6666cc guifg=fg gui=none
  87. " Tab colors {{{2
  88. if has("windows")
  89. hi TabLine ctermbg=DarkCyan ctermfg=DarkBlue guibg=DarkGray guifg=DarkBlue gui=none
  90. hi TabLineFill ctermbg=DarkCyan ctermfg=DarkBlue guibg=DarkGray guifg=DarkBlue gui=none
  91. hi TabLineSel ctermbg=DarkBlue ctermfg=Gray guibg=DarkBlue guifg=Gray gui=bold
  92. endif
  93. " Spell checking colors {{{2
  94. if has("spell")
  95. hi SpellBad ctermbg=White ctermfg=Red cterm=NONE guisp=Red gui=undercurl
  96. hi SpellCap ctermbg=White ctermfg=Blue cterm=NONE guisp=Blue gui=undercurl
  97. hi SpellLocal ctermbg=White ctermfg=DarkCyan cterm=NONE guisp=DarkCyan gui=undercurl
  98. hi SpellRare ctermbg=White ctermfg=DarkMagenta cterm=NONE guisp=Magenta gui=undercurl
  99. endif
  100. endif "}}}1
  101. " Messages and other texts' colors {{{1
  102. hi WarningMsg ctermbg=bg ctermfg=Red cterm=NONE guibg=bg guifg=Red3 gui=none
  103. hi ErrorMsg ctermbg=Red ctermfg=White cterm=NONE guibg=Red3 guifg=White gui=none
  104. hi ModeMsg ctermbg=bg ctermfg=fg cterm=NONE guibg=bg guifg=fg gui=none
  105. hi MoreMsg ctermbg=bg ctermfg=Green cterm=NONE guibg=bg guifg=DarkGreen gui=none
  106. hi Question ctermbg=bg ctermfg=White cterm=NONE guibg=bg guifg=DarkBlue gui=none
  107. hi Directory ctermbg=bg ctermfg=Blue cterm=NONE guibg=bg guifg=Blue gui=none
  108. hi Title ctermbg=bg ctermfg=Blue cterm=NONE guibg=bg guifg=Blue gui=none
  109. " Diff colors {{{1
  110. if has("diff")
  111. hi DiffAdd ctermbg=Green ctermfg=bg cterm=NONE guibg=LightGreen gui=none
  112. hi DiffChange ctermbg=Blue ctermfg=fg cterm=NONE guibg=LightBlue gui=none
  113. hi DiffDelete ctermbg=Red ctermfg=fg cterm=NONE guibg=LightRed gui=none
  114. hi DiffText ctermbg=Cyan ctermfg=bg cterm=NONE guibg=LightCyan gui=none
  115. endif
  116. " Outline, Fold & Sign columns colors {{{1
  117. hi LineNr ctermbg=bg ctermfg=DarkYellow guibg=Gray85 guifg=Gray40 gui=none
  118. if has("folding")
  119. hi Folded ctermbg=DarkCyan ctermfg=bg cterm=NONE guibg=Gray80 guifg=DarkBlue gui=none
  120. hi FoldColumn ctermbg=DarkCyan ctermfg=bg cterm=NONE guibg=Gray80 guifg=DarkBlue gui=none
  121. endif
  122. if has("signs")
  123. hi SignColumn ctermbg=bg ctermfg=Yellow cterm=NONE guibg=Gray85 guifg=DarkBlue gui=none
  124. endif
  125. " Search & Special characters' colors {{{1
  126. if has("extra_search")
  127. hi Search ctermbg=Yellow ctermfg=bg cterm=NONE guibg=Yellow guifg=fg gui=none
  128. hi IncSearch ctermbg=Green ctermfg=bg cterm=NONE guibg=Green guifg=fg gui=none
  129. endif
  130. hi NonText ctermbg=bg ctermfg=DarkGray guibg=bg guifg=DarkGray gui=none
  131. hi SpecialKey ctermbg=bg ctermfg=Brown guibg=bg guifg=#993333 gui=none
  132. " Window Bars, Status line & Visual mode colors {{{1
  133. hi StatusLine ctermbg=DarkBlue ctermfg=fg cterm=NONE guibg=DarkRed guifg=bg gui=none
  134. if has("windows")
  135. hi StatusLineNC ctermbg=DarkGreen ctermfg=bg cterm=NONE guibg=Gray60 guifg=DarkRed gui=none
  136. endif
  137. if has("vertsplit")
  138. hi VertSplit ctermbg=DarkGreen ctermfg=bg cterm=NONE guibg=DarkRed guifg=bg gui=none
  139. endif
  140. if has("wildmenu")
  141. hi WildMenu ctermbg=bg ctermfg=Green cterm=NONE guibg=bg guifg=DarkRed gui=bold
  142. endif
  143. if has("visual")
  144. hi Visual ctermbg=DarkMagenta ctermfg=bg cterm=NONE guibg=#ccee88 guifg=fg gui=none
  145. hi VisualNOS ctermbg=bg ctermfg=DarkMagenta cterm=NONE guibg=#ccee88 guifg=fg gui=none
  146. endif
  147. " Syntax highlighting colors {{{1
  148. hi Comment ctermbg=bg ctermfg=DarkGray guibg=bg guifg=Gray50 gui=none
  149. " 8 color terminals fix:
  150. " The Cursor disappears when moving it in a Comment. Only happened on
  151. " one terminal: gnome-terminal. This Fixes-it for all other weird
  152. " 8 color terminals.
  153. if (&term =~ "xterm") && (&t_Co < 16)
  154. hi Comment ctermfg=DarkGreen
  155. endif
  156. hi link SpecialComment Comment
  157. hi Character ctermbg=bg ctermfg=Red guibg=bg guifg=#990000 gui=none
  158. hi String ctermbg=bg ctermfg=Magenta guibg=bg guifg=Blue gui=none
  159. hi Constant ctermbg=bg ctermfg=Yellow guibg=bg guifg=DarkGreen gui=none
  160. hi link Number Constant
  161. hi link Float Constant
  162. hi link Boolean Constant
  163. hi Identifier ctermbg=bg ctermfg=Green guibg=bg guifg=DarkGreen gui=none
  164. hi Function ctermbg=bg ctermfg=Green guibg=bg guifg=DarkGreen gui=none
  165. hi Statement ctermbg=bg ctermfg=Blue guibg=bg guifg=DarkBlue gui=none
  166. hi link Conditional Statement
  167. hi link Repeat Statement
  168. hi link Operator Statement
  169. hi link Keyword Statement
  170. hi link Label Statement
  171. hi link Exception Statement
  172. hi Type ctermbg=bg ctermfg=DarkMagenta guibg=bg guifg=DarkMagenta gui=none
  173. hi link StorageClass Type
  174. hi link Structure Type
  175. hi link Typedef Type
  176. hi PreProc ctermbg=bg ctermfg=DarkCyan guibg=bg guifg=DarkCyan gui=none
  177. hi PreCondit ctermbg=bg ctermfg=DarkYellow guibg=bg guifg=#aa8800 gui=none
  178. hi link Include PreProc
  179. hi link Define PreProc
  180. hi Special ctermbg=bg ctermfg=Blue guibg=bg guifg=#990000 gui=none
  181. hi SpecialChar ctermbg=bg ctermfg=Red guibg=bg guifg=Red gui=none
  182. hi Tag ctermbg=bg ctermfg=DarkRed guibg=bg guifg=DarkRed gui=none
  183. hi Delimiter ctermbg=bg ctermfg=DarkRed guibg=bg guifg=DarkRed gui=none
  184. hi Debug ctermbg=bg ctermfg=DarkGray guibg=bg guifg=DarkGray gui=none
  185. hi MatchParen ctermbg=White ctermfg=Black cterm=NONE guibg=Blue guifg=White gui=none
  186. hi Error ctermbg=Red ctermfg=White cterm=NONE guibg=bg guifg=Red gui=none
  187. hi Ignore ctermbg=bg ctermfg=bg cterm=NONE guibg=bg guifg=bg gui=none
  188. hi Todo ctermbg=DarkCyan ctermfg=bg cterm=NONE guibg=DarkCyan guifg=bg gui=none
  189. hi Underlined ctermbg=bg ctermfg=Blue cterm=underline guibg=bg guifg=Blue gui=underline
  190. "}}}1
  191. "==========================================================================={{{1
  192. " vim: set et sw=2 sts=2 ts=8 nowrap:
  193. " vim600: set fdc=2 fdm=marker: