contrasty.vim 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. " Contrasty colour scheme
  2. " Author: Ben Schmidt
  3. " Version: 3
  4. " Set general colour options.
  5. set background=dark
  6. hi clear
  7. if exists("syntax_on")
  8. syntax reset
  9. endif
  10. let g:colors_name = expand('<sfile>:t:r')
  11. " COLOR KEYWORDS
  12. " Black DarkBlue DarkGreen DarkCyan DarkRed DarkMagenta Brown Grey
  13. " DarkGrey Blue Green Cyan Red Magenta Yellow White
  14. " GENERAL HIGHLIGHTS
  15. " Normal normal text (should be set first)
  16. hi Normal term=none
  17. hi Normal cterm=none ctermfg=White ctermbg=Black
  18. hi Normal gui=none guifg=White guibg=Black
  19. " Cursor the character under the cursor
  20. hi Cursor term=inverse
  21. hi Cursor cterm=none ctermfg=bg ctermbg=fg
  22. hi Cursor gui=none guifg=bg guibg=fg
  23. " CursorIM like Cursor, but used when in IME mode |CursorIM|
  24. hi CursorIM term=inverse
  25. hi CursorIM cterm=none ctermfg=bg ctermbg=fg
  26. hi CursorIM gui=none guifg=bg guibg=fg
  27. " Directory directory names (and other special names in listings)
  28. hi Directory term=bold
  29. hi Directory cterm=none ctermfg=Yellow ctermbg=bg
  30. hi Directory gui=none guifg=#ffff00 guibg=bg
  31. " DiffAdd diff mode: Added line |diff.txt|
  32. hi DiffAdd term=none
  33. hi DiffAdd cterm=none ctermfg=Brown ctermbg=bg
  34. hi DiffAdd gui=none guifg=#ccaa44 guibg=bg
  35. " DiffChange diff mode: Changed line |diff.txt|
  36. hi DiffChange term=bold
  37. hi DiffChange cterm=none ctermfg=Yellow ctermbg=bg
  38. hi DiffChange gui=none guifg=#ffff00 guibg=bg
  39. " DiffDelete diff mode: Deleted line |diff.txt|
  40. hi DiffDelete term=none
  41. hi DiffDelete cterm=none ctermfg=DarkGrey ctermbg=bg
  42. hi DiffDelete gui=none guifg=#777777 guibg=bg
  43. " DiffText diff mode: Changed text within a changed line |diff.txt|
  44. hi DiffText term=bold,underline
  45. hi DiffText cterm=none ctermfg=Red ctermbg=bg
  46. hi DiffText gui=none guifg=#ff8800 guibg=bg
  47. " ErrorMsg error messages on the command line
  48. hi ErrorMsg term=inverse
  49. hi ErrorMsg cterm=none ctermfg=White ctermbg=DarkRed
  50. hi ErrorMsg gui=none guifg=White guibg=#770000
  51. " VertSplit the column separating vertically split windows
  52. hi! link VertSplit StatusLine
  53. " Folded line used for closed folds
  54. hi Folded term=bold
  55. hi Folded cterm=bold ctermfg=fg ctermbg=bg
  56. hi Folded gui=bold guifg=fg guibg=bg
  57. " FoldColumn 'foldcolumn'
  58. hi! link FoldColumn StatusLine
  59. " IncSearch 'incsearch' highlighting; also used for the text replaced with
  60. " ":s///c"
  61. hi! link IncSearch Search
  62. " LineNr line number for ":number" and ":#" commands, and when 'number'
  63. " option is set.
  64. hi! link LineNr StatusLine
  65. " ModeMsg 'showmode' message (e.g., "-- INSERT --")
  66. hi! link ModeMsg StatusLine
  67. " MoreMsg |more-prompt|
  68. hi! link MoreMsg StatusLine
  69. " NonText '~' and '@' at the end of the window, characters from
  70. " 'showbreak' and other characters that do not really exist in
  71. " the text (e.g., ">" displayed when a double-wide character
  72. " doesn't fit at the end of the line).
  73. hi NonText term=none
  74. hi NonText cterm=none ctermfg=DarkGrey ctermbg=bg
  75. hi NonText gui=none guifg=#777777 guibg=bg
  76. " Question |hit-enter| prompt and yes/no questions
  77. hi! link Question StatusLine
  78. " Search Last search pattern highlighting (see 'hlsearch').
  79. " Also used for highlighting the current line in the quickfix
  80. " window and similar items that need to stand out.
  81. hi Search term=inverse
  82. hi Search cterm=none ctermfg=bg ctermbg=fg
  83. hi Search gui=none guifg=bg guibg=fg
  84. " SpecialKey Meta and special keys listed with ":map", also for text used
  85. " to show unprintable characters in the text, 'listchars'.
  86. " Generally: text that is displayed differently from what it
  87. " really is.
  88. hi SpecialKey term=bold
  89. hi SpecialKey cterm=none ctermfg=DarkCyan ctermbg=bg
  90. hi SpecialKey gui=none guifg=#007777 guibg=bg
  91. " StatusLine status line of current window
  92. hi StatusLine term=bold,inverse
  93. hi StatusLine cterm=none ctermfg=Black ctermbg=White
  94. hi StatusLine gui=none guifg=Black guibg=White
  95. " StatusLineNC status lines of not-current windows
  96. " Note: if this is equal to "StatusLine" Vim will use "^^^" in
  97. " the status line of the current window.
  98. hi StatusLineNC term=inverse
  99. hi StatusLineNC cterm=none ctermfg=DarkGrey ctermbg=White
  100. hi StatusLineNC gui=none guifg=#777777 guibg=White
  101. " TabLine tab pages line, not active tab page label
  102. hi TabLine term=none
  103. hi TabLine cterm=none ctermfg=yellow ctermbg=DarkGrey
  104. hi TabLine gui=none guifg=yellow guibg=#777777
  105. " TabLineFill tab pages line, where there are no labels
  106. hi TabLineFill term=none
  107. hi TabLineFill ctermfg=DarkGrey
  108. hi TabLineFill guifg=#777777
  109. " TabLineSel tab pages line, active tab page label
  110. hi TabLineSel term=inverse
  111. hi TabLineSel cterm=none ctermfg=yellow ctermbg=Black
  112. hi TabLineSel gui=none guifg=yellow guibg=Black
  113. " Title titles for output from ":set all", ":autocmd" etc.
  114. hi Title term=bold,underline
  115. hi Title cterm=none ctermfg=Yellow ctermbg=bg
  116. hi Title gui=none guifg=#ffff00 guibg=bg
  117. " Visual Visual mode selection
  118. hi Visual term=inverse
  119. hi Visual cterm=none ctermfg=bg ctermbg=fg
  120. hi Visual gui=none guifg=bg guibg=fg
  121. " VisualNOS Visual mode selection when vim is "Not Owning the Selection".
  122. " Only X11 Gui's |gui-x11| and |xterm-clipboard| supports this.
  123. hi! link VisualNOS Visual
  124. " WarningMsg warning messages
  125. hi! link WarningMsg StatusLine
  126. " WildMenu current match in 'wildmenu' completion
  127. hi WildMenu term=bold,inverse
  128. hi WildMenu cterm=none ctermfg=bg ctermbg=Yellow
  129. hi WildMenu gui=none guifg=bg guibg=#ffff00
  130. " DEFAULT SYNTAX HIGHLIGHTS
  131. " *Comment any comment
  132. hi Comment term=bold
  133. hi Comment cterm=none ctermfg=Cyan ctermbg=bg
  134. hi Comment gui=none guifg=#00ccff guibg=bg
  135. " *Constant any constant
  136. " String a string constant: "this is a string"
  137. " Character a character constant: 'c', '\n'
  138. " Number a number constant: 234, 0xff
  139. " Boolean a boolean constant: TRUE, false
  140. " Float a floating point constant: 2.3e10
  141. hi Constant term=none
  142. hi Constant cterm=none ctermfg=Brown ctermbg=bg
  143. hi Constant gui=none guifg=#ccaa44 guibg=bg
  144. hi! link Literal Normal
  145. hi! link String Literal
  146. hi! link Character Literal
  147. hi! link Number Literal
  148. hi! link Boolean Constant
  149. hi! link Float Literal
  150. " *Identifier any variable name
  151. " Function function name (also: methods for classes)
  152. hi Identifier term=none
  153. hi Identifier cterm=none ctermfg=Magenta ctermbg=bg
  154. hi Identifier gui=none guifg=#ff00ff guibg=bg
  155. hi! link Function Statement
  156. " *Statement any statement
  157. " Conditional if, then, else, endif, switch, etc.
  158. " Repeat for, do, while, etc.
  159. " Label case, default, etc.
  160. " Operator "sizeof", "+", "*", etc.
  161. " Keyword any other keyword
  162. " Exception try, catch, throw
  163. hi Statement term=underline
  164. hi Statement cterm=none ctermfg=Yellow ctermbg=bg
  165. hi Statement gui=none guifg=#ffff00 guibg=bg
  166. hi! link Conditional Statement
  167. hi! link Repeat Statement
  168. hi! link Label Statement
  169. hi! link Operator Normal
  170. hi! link Keyword Statement
  171. hi! link Exception Statement
  172. " *PreProc generic Preprocessor
  173. " Include preprocessor #include
  174. " Define preprocessor #define
  175. " Macro same as Define
  176. " PreCondit preprocessor #if, #else, #endif, etc.
  177. hi PreProc term=none
  178. hi PreProc cterm=none ctermfg=Magenta ctermbg=bg
  179. hi PreProc gui=none guifg=#ff00ff guibg=bg
  180. hi! link Include PreProc
  181. hi! link Define PreProc
  182. hi! link Macro PreProc
  183. hi! link PreCondit PreProc
  184. " *Type int, long, char, etc.
  185. " StorageClass static, register, volatile, etc.
  186. " Structure struct, union, enum, etc.
  187. " Typedef A typedef
  188. hi Type term=none
  189. hi Type cterm=none ctermfg=Brown ctermbg=bg
  190. hi Type gui=none guifg=#ccaa44 guibg=bg
  191. hi! link StorageClass Type
  192. hi! link Structure Type
  193. hi! link Typedef Type
  194. " *Special any special symbol
  195. " SpecialChar special character in a constant
  196. " Tag you can use CTRL-] on this
  197. " Delimiter character that needs attention
  198. " SpecialComment special things inside a comment
  199. " Debug debugging statements
  200. hi Special term=bold
  201. hi Special cterm=none ctermfg=DarkCyan ctermbg=bg
  202. hi Special gui=none guifg=#007777 guibg=bg
  203. hi! link SpecialChar Special
  204. hi! link Tag Special
  205. hi! link Delimiter Normal
  206. hi! link SpecialComment Special
  207. hi! link Debug Special
  208. " *Underlined text that stands out, HTML links
  209. hi Underlined term=underline
  210. hi Underlined cterm=underline ctermfg=fg ctermbg=bg
  211. hi Underlined gui=underline guifg=fg guibg=bg
  212. " *Ignore left blank, hidden
  213. " hi Ignore term=?
  214. hi Ignore cterm=none ctermfg=bg ctermbg=bg
  215. hi Ignore gui=none guifg=bg guibg=bg
  216. " *Error any erroneous construct
  217. hi Error term=inverse
  218. hi Error cterm=none ctermfg=White ctermbg=DarkRed
  219. hi Error gui=none guifg=White guibg=#770000
  220. " *Todo anything that needs extra attention; mostly the
  221. " keywords TODO FIXME and XXX
  222. hi Todo term=inverse
  223. hi Todo cterm=none ctermfg=Red ctermbg=Black
  224. hi Todo gui=none guifg=#ff0000 guibg=Black