hybrid_reverse.vim 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470
  1. " File: hybrid_reverse.vim
  2. " Maintainer: Kristijan Husak (kristijanhusak)
  3. " URL: https://github.com/kristijanhusak/vim-hybrid-material
  4. " BASED ON: https://github.com/w0ng/vim-hybrid
  5. " Modified: 16 Apr 2016
  6. " License: MIT
  7. " Description:"{{{
  8. " ----------------------------------------------------------------------------
  9. " The default RGB colour palette is taken from Tomorrow-Night.vim:
  10. " https://github.com/chriskempson/vim-tomorrow-theme
  11. "
  12. " The reduced RGB colour palette is taken from Codecademy's online editor:
  13. " https://www.codecademy.com/learn
  14. "
  15. " The syntax highlighting scheme is taken from jellybeans.vim:
  16. " https://github.com/nanotech/jellybeans.vim
  17. "
  18. " The is code taken from solarized.vim:
  19. " https://github.com/altercation/vim-colors-solarized
  20. "}}}
  21. " Requirements And Recommendations:"{{{
  22. " ----------------------------------------------------------------------------
  23. " Requirements
  24. " - gVim 7.3+ on Linux, Mac and Windows.
  25. " - Vim 7.3+ on Linux and Mac, using a terminal that supports 256 colours.
  26. "
  27. " Due to the limited 256 palette, colours in Vim and gVim will still be slightly
  28. " different.
  29. "
  30. " In order to have Vim use the same colours as gVim (the way this colour scheme
  31. " is intended), it is recommended that you define the basic 16 colours in your
  32. " terminal.
  33. "
  34. " For Linux users (rxvt-unicode, xterm):
  35. "
  36. " 1. Add the default palette to ~/.Xresources:
  37. "
  38. " https://gist.github.com/3278077
  39. "
  40. " or alternatively, add the reduced contrast palette to ~/.Xresources:
  41. "
  42. " https://gist.github.com/w0ng/16e33902508b4a0350ae
  43. "
  44. " 2. Add to ~/.vimrc:
  45. "
  46. " let g:hybrid_custom_term_colors = 1
  47. " let g:hybrid_reduced_contrast = 1 " Remove this line if using the default palette.
  48. " colorscheme hybrid
  49. "
  50. " For OSX users (iTerm):
  51. "
  52. " 1. Import the default colour preset into iTerm:
  53. "
  54. " https://raw.githubusercontent.com/w0ng/dotfiles/master/iterm2/hybrid.itermcolors
  55. "
  56. " or alternatively, import the reduced contrast color preset into iTerm:
  57. "
  58. " https://raw.githubusercontent.com/w0ng/dotfiles/master/iterm2/hybrid-reduced-contrast.itermcolors
  59. "
  60. " 2. Add to ~/.vimrc:
  61. "
  62. " let g:hybrid_custom_term_colors = 1
  63. " let g:hybrid_reduced_contrast = 1 " Remove this line if using the default palette.
  64. " colorscheme hybrid
  65. "}}}
  66. " Initialisation:"{{{
  67. " ----------------------------------------------------------------------------
  68. hi clear
  69. if exists("syntax_on")
  70. syntax reset
  71. endif
  72. let s:style = &background
  73. let g:colors_name = "hybrid_reverse"
  74. "}}}
  75. " GUI And Cterm Palettes:"{{{
  76. " ----------------------------------------------------------------------------
  77. let s:palette = {'gui' : {} , 'cterm' : {}}
  78. let s:gui_background = "#1d1f21"
  79. let s:gui_selection = "#373b41"
  80. let s:gui_line = "#282a2e"
  81. let s:gui_comment = "#707880"
  82. let s:palette.gui.background = { 'dark' : s:gui_background , 'light' : "#e4e4e4" }
  83. let s:palette.gui.foreground = { 'dark' : "#c5c8c6" , 'light' : "#000000" }
  84. let s:palette.gui.selection = { 'dark' : s:gui_selection , 'light' : "#bcbcbc" }
  85. let s:palette.gui.line = { 'dark' : s:gui_line , 'light' : "#d0d0d0" }
  86. let s:palette.gui.comment = { 'dark' : s:gui_comment , 'light' : "#5f5f5f" }
  87. let s:palette.gui.red = { 'dark' : "#cc6666" , 'light' : "#5f0000" }
  88. let s:palette.gui.orange = { 'dark' : "#de935f" , 'light' : "#875f00" }
  89. let s:palette.gui.yellow = { 'dark' : "#f0c674" , 'light' : "#5f5f00" }
  90. let s:palette.gui.green = { 'dark' : "#b5bd68" , 'light' : "#005f00" }
  91. let s:palette.gui.aqua = { 'dark' : "#8abeb7" , 'light' : "#005f5f" }
  92. let s:palette.gui.blue = { 'dark' : "#81a2be" , 'light' : "#00005f" }
  93. let s:palette.gui.purple = { 'dark' : "#b294bb" , 'light' : "#5f005f" }
  94. let s:palette.gui.window = { 'dark' : "#303030" , 'light' : "#9e9e9e" }
  95. let s:palette.gui.darkcolumn = { 'dark' : "#1c1c1c" , 'light' : "#808080" }
  96. let s:palette.gui.addbg = { 'dark' : "#5F875F" , 'light' : "#d7ffd7" }
  97. let s:palette.gui.addfg = { 'dark' : "#d7ffaf" , 'light' : "#005f00" }
  98. let s:palette.gui.changebg = { 'dark' : "#5F5F87" , 'light' : "#d7d7ff" }
  99. let s:palette.gui.changefg = { 'dark' : "#d7d7ff" , 'light' : "#5f005f" }
  100. let s:palette.gui.delbg = { 'dark' : "#cc6666" , 'light' : "#ffd7d7" }
  101. let s:palette.gui.darkblue = { 'dark' : "#00005f" , 'light' : "#d7ffd7" }
  102. let s:palette.gui.darkcyan = { 'dark' : "#005f5f" , 'light' : "#005f00" }
  103. let s:palette.gui.darkred = { 'dark' : "#5f0000" , 'light' : "#d7d7ff" }
  104. let s:palette.gui.darkpurple = { 'dark' : "#5f005f" , 'light' : "#5f005f" }
  105. if exists("g:hybrid_custom_term_colors") && g:hybrid_custom_term_colors == 1
  106. let s:cterm_foreground = "15" " White
  107. let s:cterm_selection = "8" " DarkGrey
  108. let s:cterm_line = "0" " Black
  109. let s:cterm_comment = "7" " LightGrey
  110. let s:cterm_red = "9" " LightRed
  111. let s:cterm_orange = "3" " DarkYellow
  112. let s:cterm_yellow = "11" " LightYellow
  113. let s:cterm_green = "10" " LightGreen
  114. let s:cterm_aqua = "14" " LightCyan
  115. let s:cterm_blue = "12" " LightBlue
  116. let s:cterm_purple = "13" " LightMagenta
  117. let s:cterm_delbg = "9" " LightRed
  118. else
  119. let s:cterm_foreground = "250"
  120. let s:cterm_selection = "237"
  121. let s:cterm_line = "235"
  122. let s:cterm_comment = "243"
  123. let s:cterm_red = "167"
  124. let s:cterm_orange = "173"
  125. let s:cterm_yellow = "221"
  126. let s:cterm_green = "143"
  127. let s:cterm_aqua = "109"
  128. let s:cterm_blue = "110"
  129. let s:cterm_purple = "139"
  130. let s:cterm_delbg = "167"
  131. endif
  132. let s:palette.cterm.background = { 'dark' : "234" , 'light' : "254" }
  133. let s:palette.cterm.foreground = { 'dark' : s:cterm_foreground , 'light' : "16" }
  134. let s:palette.cterm.window = { 'dark' : "236" , 'light' : "247" }
  135. let s:palette.cterm.selection = { 'dark' : s:cterm_selection , 'light' : "250" }
  136. let s:palette.cterm.line = { 'dark' : s:cterm_line , 'light' : "252" }
  137. let s:palette.cterm.comment = { 'dark' : s:cterm_comment , 'light' : "59" }
  138. let s:palette.cterm.red = { 'dark' : s:cterm_red , 'light' : "52" }
  139. let s:palette.cterm.orange = { 'dark' : s:cterm_orange , 'light' : "94" }
  140. let s:palette.cterm.yellow = { 'dark' : s:cterm_yellow , 'light' : "58" }
  141. let s:palette.cterm.green = { 'dark' : s:cterm_green , 'light' : "22" }
  142. let s:palette.cterm.aqua = { 'dark' : s:cterm_aqua , 'light' : "23" }
  143. let s:palette.cterm.blue = { 'dark' : s:cterm_blue , 'light' : "17" }
  144. let s:palette.cterm.purple = { 'dark' : s:cterm_purple , 'light' : "53" }
  145. let s:palette.cterm.darkcolumn = { 'dark' : "234" , 'light' : "244" }
  146. let s:palette.cterm.addbg = { 'dark' : "65" , 'light' : "194" }
  147. let s:palette.cterm.addfg = { 'dark' : "193" , 'light' : "22" }
  148. let s:palette.cterm.changebg = { 'dark' : "60" , 'light' : "189" }
  149. let s:palette.cterm.changefg = { 'dark' : "189" , 'light' : "53" }
  150. let s:palette.cterm.delbg = { 'dark' : s:cterm_delbg , 'light' : "224" }
  151. let s:palette.cterm.darkblue = { 'dark' : "17" , 'light' : "194" }
  152. let s:palette.cterm.darkcyan = { 'dark' : "24" , 'light' : "22" }
  153. let s:palette.cterm.darkred = { 'dark' : "52" , 'light' : "189" }
  154. let s:palette.cterm.darkpurple = { 'dark' : "53" , 'light' : "53" }
  155. "}}}
  156. " Formatting Options:"{{{
  157. " ----------------------------------------------------------------------------
  158. let s:none = "NONE"
  159. let s:t_none = "NONE"
  160. let s:n = "NONE"
  161. let s:c = ",undercurl"
  162. let s:r = ",reverse"
  163. let s:s = ",standout"
  164. let s:b = ",bold"
  165. let s:u = ",underline"
  166. let s:i = ",italic"
  167. "}}}
  168. " Highlighting Primitives:"{{{
  169. " ----------------------------------------------------------------------------
  170. function! s:build_prim(hi_elem, field)
  171. " Given a:hi_elem = bg, a:field = comment
  172. let l:vname = "s:" . a:hi_elem . "_" . a:field " s:bg_comment
  173. let l:gui_assign = "gui".a:hi_elem."=".s:palette.gui[a:field][s:style] " guibg=...
  174. let l:cterm_assign = "cterm".a:hi_elem."=".s:palette.cterm[a:field][s:style] " ctermbg=...
  175. exe "let " . l:vname . " = ' " . l:gui_assign . " " . l:cterm_assign . "'"
  176. endfunction
  177. let s:bg_none = ' guibg=NONE ctermbg=NONE'
  178. call s:build_prim('bg', 'foreground')
  179. call s:build_prim('bg', 'background')
  180. call s:build_prim('bg', 'selection')
  181. call s:build_prim('bg', 'line')
  182. call s:build_prim('bg', 'comment')
  183. call s:build_prim('bg', 'red')
  184. call s:build_prim('bg', 'orange')
  185. call s:build_prim('bg', 'yellow')
  186. call s:build_prim('bg', 'green')
  187. call s:build_prim('bg', 'aqua')
  188. call s:build_prim('bg', 'blue')
  189. call s:build_prim('bg', 'purple')
  190. call s:build_prim('bg', 'window')
  191. call s:build_prim('bg', 'darkcolumn')
  192. call s:build_prim('bg', 'addbg')
  193. call s:build_prim('bg', 'addfg')
  194. call s:build_prim('bg', 'changebg')
  195. call s:build_prim('bg', 'changefg')
  196. call s:build_prim('bg', 'delbg')
  197. call s:build_prim('bg', 'darkblue')
  198. call s:build_prim('bg', 'darkcyan')
  199. call s:build_prim('bg', 'darkred')
  200. call s:build_prim('bg', 'darkpurple')
  201. let s:fg_none = ' guifg=NONE ctermfg=NONE'
  202. call s:build_prim('fg', 'foreground')
  203. call s:build_prim('fg', 'background')
  204. call s:build_prim('fg', 'selection')
  205. call s:build_prim('fg', 'line')
  206. call s:build_prim('fg', 'comment')
  207. call s:build_prim('fg', 'red')
  208. call s:build_prim('fg', 'orange')
  209. call s:build_prim('fg', 'yellow')
  210. call s:build_prim('fg', 'green')
  211. call s:build_prim('fg', 'aqua')
  212. call s:build_prim('fg', 'blue')
  213. call s:build_prim('fg', 'purple')
  214. call s:build_prim('fg', 'window')
  215. call s:build_prim('fg', 'darkcolumn')
  216. call s:build_prim('fg', 'addbg')
  217. call s:build_prim('fg', 'addfg')
  218. call s:build_prim('fg', 'changebg')
  219. call s:build_prim('fg', 'changefg')
  220. call s:build_prim('fg', 'darkblue')
  221. call s:build_prim('fg', 'darkcyan')
  222. call s:build_prim('fg', 'darkred')
  223. call s:build_prim('fg', 'darkpurple')
  224. exe "let s:fmt_none = ' gui=NONE". " cterm=NONE". " term=NONE" ."'"
  225. exe "let s:fmt_bold = ' gui=NONE".s:b. " cterm=NONE".s:b. " term=NONE".s:b ."'"
  226. exe "let s:fmt_bldi = ' gui=NONE".s:b. " cterm=NONE".s:b. " term=NONE".s:b ."'"
  227. exe "let s:fmt_undr = ' gui=NONE".s:u. " cterm=NONE".s:u. " term=NONE".s:u ."'"
  228. exe "let s:fmt_undb = ' gui=NONE".s:u.s:b. " cterm=NONE".s:u.s:b. " term=NONE".s:u.s:b."'"
  229. exe "let s:fmt_undi = ' gui=NONE".s:u. " cterm=NONE".s:u. " term=NONE".s:u ."'"
  230. exe "let s:fmt_curl = ' gui=NONE".s:c. " cterm=NONE".s:c. " term=NONE".s:c ."'"
  231. exe "let s:fmt_ital = ' gui=NONE".s:i. " cterm=NONE".s:i. " term=NONE".s:i ."'"
  232. exe "let s:fmt_stnd = ' gui=NONE".s:s. " cterm=NONE".s:s. " term=NONE".s:s ."'"
  233. exe "let s:fmt_revr = ' gui=NONE".s:r. " cterm=NONE".s:r. " term=NONE".s:r ."'"
  234. exe "let s:fmt_revb = ' gui=NONE".s:r.s:b. " cterm=NONE".s:r.s:b. " term=NONE".s:r.s:b."'"
  235. exe "let s:sp_none = ' guisp=". s:none ."'"
  236. exe "let s:sp_foreground = ' guisp=". s:palette.gui.foreground[s:style] ."'"
  237. exe "let s:sp_background = ' guisp=". s:palette.gui.background[s:style] ."'"
  238. exe "let s:sp_selection = ' guisp=". s:palette.gui.selection[s:style] ."'"
  239. exe "let s:sp_line = ' guisp=". s:palette.gui.line[s:style] ."'"
  240. exe "let s:sp_comment = ' guisp=". s:palette.gui.comment[s:style] ."'"
  241. exe "let s:sp_red = ' guisp=". s:palette.gui.red[s:style] ."'"
  242. exe "let s:sp_orange = ' guisp=". s:palette.gui.orange[s:style] ."'"
  243. exe "let s:sp_yellow = ' guisp=". s:palette.gui.yellow[s:style] ."'"
  244. exe "let s:sp_green = ' guisp=". s:palette.gui.green[s:style] ."'"
  245. exe "let s:sp_aqua = ' guisp=". s:palette.gui.aqua[s:style] ."'"
  246. exe "let s:sp_blue = ' guisp=". s:palette.gui.blue[s:style] ."'"
  247. exe "let s:sp_purple = ' guisp=". s:palette.gui.purple[s:style] ."'"
  248. exe "let s:sp_window = ' guisp=". s:palette.gui.window[s:style] ."'"
  249. exe "let s:sp_addbg = ' guisp=". s:palette.gui.addbg[s:style] ."'"
  250. exe "let s:sp_addfg = ' guisp=". s:palette.gui.addfg[s:style] ."'"
  251. exe "let s:sp_changebg = ' guisp=". s:palette.gui.changebg[s:style] ."'"
  252. exe "let s:sp_changefg = ' guisp=". s:palette.gui.changefg[s:style] ."'"
  253. exe "let s:sp_darkblue = ' guisp=". s:palette.gui.darkblue[s:style] ."'"
  254. exe "let s:sp_darkcyan = ' guisp=". s:palette.gui.darkcyan[s:style] ."'"
  255. exe "let s:sp_darkred = ' guisp=". s:palette.gui.darkred[s:style] ."'"
  256. exe "let s:sp_darkpurple = ' guisp=". s:palette.gui.darkpurple[s:style] ."'"
  257. " Set bold font depending on options
  258. if exists("g:enable_bold_font") && g:enable_bold_font == 1
  259. let s:fg_bold = s:fmt_bold
  260. else
  261. let s:fg_bold = s:fmt_none
  262. endif
  263. " Set italic font depending on options
  264. if exists("g:enable_italic_font") && g:enable_italic_font == 1
  265. let s:fg_italic = s:fmt_ital
  266. else
  267. let s:fg_italic = s:fmt_none
  268. endif
  269. "}}}
  270. " Vim Highlighting: (see :help highlight-groups)"{{{
  271. " ----------------------------------------------------------------------------
  272. exe "hi! ColorColumn" .s:fg_none .s:bg_line .s:fmt_none
  273. " Conceal"
  274. " Cursor"
  275. " CursorIM"
  276. exe "hi! CursorColumn" .s:fg_none .s:bg_line .s:fmt_none
  277. exe "hi! CursorLine" .s:fg_none .s:bg_line .s:fmt_none
  278. exe "hi! Directory" .s:fg_blue .s:bg_none .s:fmt_none
  279. exe "hi! DiffAdd" .s:fg_addfg .s:bg_addbg .s:fmt_none
  280. exe "hi! DiffChange" .s:fg_changefg .s:bg_changebg .s:fmt_none
  281. exe "hi! DiffDelete" .s:fg_background .s:bg_delbg .s:fmt_none
  282. exe "hi! DiffText" .s:fg_background .s:bg_blue .s:fmt_none
  283. exe "hi! ErrorMsg" .s:fg_background .s:bg_red .s:fmt_stnd
  284. exe "hi! VertSplit" .s:fg_window .s:bg_none .s:fmt_none
  285. exe "hi! Folded" .s:fg_comment .s:bg_darkcolumn .s:fmt_none
  286. exe "hi! FoldColumn" .s:fg_none .s:bg_darkcolumn .s:fmt_none
  287. exe "hi! SignColumn" .s:fg_none .s:bg_darkcolumn .s:fmt_none
  288. " Incsearch"
  289. exe "hi! LineNr" .s:fg_selection .s:bg_none .s:fmt_none
  290. exe "hi! CursorLineNr" .s:fg_yellow .s:bg_none .s:fg_bold
  291. exe "hi! MatchParen" .s:fg_aqua .s:bg_changebg .s:fg_bold
  292. exe "hi! ModeMsg" .s:fg_green .s:bg_none .s:fmt_none
  293. exe "hi! MoreMsg" .s:fg_green .s:bg_none .s:fmt_none
  294. exe "hi! NonText" .s:fg_selection .s:bg_none .s:fmt_none
  295. exe "hi! Pmenu" .s:fg_foreground .s:bg_selection .s:fmt_none
  296. exe "hi! PmenuSel" .s:fg_foreground .s:bg_selection .s:fmt_revr
  297. " PmenuSbar"
  298. " PmenuThumb"
  299. exe "hi! Question" .s:fg_green .s:bg_none .s:fmt_none
  300. exe "hi! Search" .s:fg_background .s:bg_yellow .s:fmt_none
  301. exe "hi! SpecialKey" .s:fg_selection .s:bg_none .s:fmt_none
  302. exe "hi! SpellCap" .s:fg_blue .s:bg_none .s:fmt_undr
  303. exe "hi! SpellLocal" .s:fg_aqua .s:bg_none .s:fmt_undr
  304. exe "hi! SpellBad" .s:fg_red .s:bg_none .s:fmt_undr
  305. exe "hi! SpellRare" .s:fg_purple .s:bg_none .s:fmt_undr
  306. exe "hi! StatusLine" .s:fg_comment .s:bg_background .s:fmt_revr
  307. exe "hi! StatusLineNC" .s:fg_window .s:bg_comment .s:fmt_revr
  308. exe "hi! TabLine" .s:fg_foreground .s:bg_darkcolumn .s:fmt_revr
  309. " TabLineFill"
  310. " TabLineSel"
  311. exe "hi! Title" .s:fg_yellow .s:bg_none .s:fmt_none
  312. exe "hi! Visual" .s:fg_none .s:bg_selection .s:fmt_none
  313. " VisualNos"
  314. exe "hi! WarningMsg" .s:fg_red .s:bg_none .s:fmt_none
  315. " FIXME LongLineWarning to use variables instead of hardcoding
  316. hi LongLineWarning guifg=NONE guibg=#371F1C gui=underline ctermfg=NONE ctermbg=NONE cterm=underline
  317. " WildMenu"
  318. " Use defined custom background colour for terminal Vim.
  319. if !has('gui_running') && exists("g:hybrid_custom_term_colors") && g:hybrid_custom_term_colors == 1
  320. let s:bg_normal = s:bg_none
  321. else
  322. let s:bg_normal = s:bg_background
  323. endif
  324. let s:normal_bg = s:bg_normal
  325. if get(g:, 'hybrid_transparent_background', 0) == 1
  326. let s:normal_bg = s:bg_none
  327. endif
  328. exe "hi! Normal" .s:fg_foreground .s:normal_bg .s:fmt_none
  329. "}}}
  330. " Generic Syntax Highlighting: (see :help group-name)"{{{
  331. " ----------------------------------------------------------------------------
  332. exe "hi! Comment" .s:fg_comment .s:bg_none .s:fg_italic
  333. exe "hi! Constant" .s:fg_purple .s:bg_none .s:fmt_none
  334. exe "hi! String" .s:fg_green .s:bg_none .s:fmt_none
  335. " Character"
  336. " Number"
  337. " Boolean"
  338. " Float"
  339. exe "hi! Identifier" .s:fg_red .s:bg_none .s:fmt_none
  340. exe "hi! Function" .s:fg_yellow .s:bg_none .s:fg_bold
  341. exe "hi! Statement" .s:fg_blue .s:bg_none .s:fg_bold
  342. " Conditional"
  343. " Repeat"
  344. " Label"
  345. exe "hi! Operator" .s:fg_aqua .s:bg_none .s:fmt_none
  346. " Keyword"
  347. " Exception"
  348. exe "hi! PreProc" .s:fg_aqua .s:bg_none .s:fg_bold
  349. " Include"
  350. " Define"
  351. " Macro"
  352. " PreCondit"
  353. exe "hi! Type" .s:fg_orange .s:bg_none .s:fg_bold
  354. " StorageClass"
  355. exe "hi! Structure" .s:fg_aqua .s:bg_none .s:fmt_none
  356. " Typedef"
  357. exe "hi! Special" .s:fg_red .s:bg_none .s:fmt_none
  358. " SpecialChar"
  359. " Tag"
  360. " Delimiter"
  361. " SpecialComment"
  362. " Debug"
  363. "
  364. exe "hi! Underlined" .s:fg_blue .s:bg_none .s:fmt_none
  365. exe "hi! Ignore" .s:fg_none .s:bg_none .s:fmt_none
  366. exe "hi! Error" .s:fg_red .s:bg_none .s:fmt_none
  367. exe "hi! Todo" .s:fg_addfg .s:bg_none .s:fg_bold
  368. " Quickfix window highlighting
  369. exe "hi! qfLineNr" .s:fg_yellow .s:bg_none .s:fmt_none
  370. " qfFileName"
  371. " qfLineNr"
  372. " qfError"
  373. "}}}
  374. " Diff Syntax Highlighting:"{{{
  375. " ----------------------------------------------------------------------------
  376. " Diff
  377. " diffOldFile
  378. " diffNewFile
  379. " diffFile
  380. " diffOnly
  381. " diffIdentical
  382. " diffDiffer
  383. " diffBDiffer
  384. " diffIsA
  385. " diffNoEOL
  386. " diffCommon
  387. hi! link diffRemoved Special
  388. " diffChanged
  389. hi! link diffAdded String
  390. " diffLine
  391. " diffSubname
  392. " diffComment
  393. "}}}
  394. "
  395. " This is needed for some reason: {{{
  396. let &background = s:style
  397. " }}}
  398. " Legal:"{{{
  399. " ----------------------------------------------------------------------------
  400. " Copyright (c) 2011 Ethan Schoonover
  401. " Copyright (c) 2009-2012 NanoTech
  402. " Copyright (c) 2012 w0ng
  403. "
  404. " Permission is hereby granted, free of charge, to any per‐
  405. " son obtaining a copy of this software and associated doc‐
  406. " umentation files (the “Software”), to deal in the Soft‐
  407. " ware without restriction, including without limitation
  408. " the rights to use, copy, modify, merge, publish, distrib‐
  409. " ute, sublicense, and/or sell copies of the Software, and
  410. " to permit persons to whom the Software is furnished to do
  411. " so, subject to the following conditions:
  412. "
  413. " The above copyright notice and this permission notice
  414. " shall be included in all copies or substantial portions
  415. " of the Software.
  416. "
  417. " THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY
  418. " KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  419. " THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICU‐
  420. " LAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  421. " AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  422. " DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CON‐
  423. " TRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CON‐
  424. " NECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  425. " THE SOFTWARE.
  426. " }}}