PageRenderTime 59ms CodeModel.GetById 11ms RepoModel.GetById 1ms app.codeStats 0ms

/vim/colors/distinguished.vim

https://github.com/creationix/vimrc
Vim Script | 180 lines | 163 code | 9 blank | 8 comment | 11 complexity | c355cfe03032d477d05fa1d0d6f95dee MD5 | raw file
  1. " Author: Kim Silkebækken <kim.silkebaekken+vim@gmail.com>
  2. " Source repository: https://github.com/Lokaltog/vim-distinguished
  3. " Initialization {{{
  4. set background=dark
  5. hi clear
  6. if exists('syntax_on')
  7. syntax reset
  8. endif
  9. let g:colors_name = 'distinguished'
  10. if ! has('gui_running')
  11. if &t_Co != 256
  12. echoe 'The ' . g:colors_name . ' color scheme requires gvim or a 256-color terminal'
  13. finish
  14. endif
  15. endif
  16. " }}}
  17. " Color dictionary parser {{{
  18. function! s:ColorDictParser(color_dict)
  19. for [group, group_colors] in items(a:color_dict)
  20. exec 'hi ' . group
  21. \ . ' ctermfg=' . (group_colors[0] == '' ? 'NONE' : group_colors[0])
  22. \ . ' ctermbg=' . (group_colors[1] == '' ? 'NONE' : group_colors[1])
  23. \ . ' cterm=' . (group_colors[2] == '' ? 'NONE' : group_colors[2])
  24. \
  25. \ . ' guifg=' . (group_colors[3] == '' ? 'NONE' : '#' . group_colors[3])
  26. \ . ' guibg=' . (group_colors[4] == '' ? 'NONE' : '#' . group_colors[4])
  27. \ . ' gui=' . (group_colors[5] == '' ? 'NONE' : group_colors[5])
  28. endfor
  29. endfunction
  30. " }}}
  31. " | Highlight group | CTFG | CTBG | CTAttributes | || | GUIFG | GUIBG | GUIAttributes |
  32. " |--------------------------------|-------|-------|-----------------| || |---------|----------|-----------------|
  33. call s:ColorDictParser({
  34. \ 'Normal' : [ 231, 16, '', 'ffffff', '000000', '']
  35. \ , 'Visual' : [ 240, 253, '', '585858', 'dadada', '']
  36. \
  37. \ , 'Cursor' : [ '', '', '', 'ffffff', 'dd4010', '']
  38. \ , 'lCursor' : [ '', '', '', 'ffffff', '89b6e2', '']
  39. \
  40. \ , 'CursorLine' : [ '', 236, '', '', '3a3a3a', '']
  41. \ , 'CursorLineNr' : [ 231, 240, '', 'ffffff', '585858', '']
  42. \ , 'CursorColumn' : [ 231, 237, '', 'ffffff', '3a3a3a', '']
  43. \
  44. \ , 'Folded' : [ 249, 234, '', 'b2b2b2', '1c1c1c', '']
  45. \ , 'FoldColumn' : [ 243, 234, '', '767676', '1c1c1c', '']
  46. \ , 'SignColumn' : [ 231, 233, 'bold', 'ffffff', '121212', 'bold']
  47. \ , 'ColorColumn' : [ '', 233, '', '', '262626', '']
  48. \
  49. \ , 'StatusLine' : [ 231, 236, 'bold', 'ffffff', '303030', 'bold']
  50. \ , 'StatusLineNC' : [ 244, 232, '', '808080', '080808', '']
  51. \
  52. \ , 'LineNr' : [ 243, 235, '', '767676', '262626', '']
  53. \ , 'VertSplit' : [ 240, '', '', '585858', '1c1c1c', '']
  54. \
  55. \ , 'WildMenu' : [ 234, 231, '', '1c1c1c', 'ffffff', '']
  56. \ , 'Directory' : [ 143, '', 'bold', 'afaf5f', '', 'bold']
  57. \ , 'Underlined' : [ 130, '', '', 'af5f00', '', '']
  58. \
  59. \ , 'Question' : [ 74, '', 'bold', '5fafd7', '', 'bold']
  60. \ , 'MoreMsg' : [ 214, '', 'bold', 'ffaf00', '', 'bold']
  61. \ , 'WarningMsg' : [ 202, '', 'bold', 'ff5f00', '', 'bold']
  62. \ , 'ErrorMsg' : [ 196, '', 'bold', 'ff0000', '', 'bold']
  63. \
  64. \ , 'Comment' : [ 243, 233, '', '767676', '121212', '']
  65. \ , 'vimCommentTitleLeader' : [ 250, 233, '', 'bcbcbc', '121212', '']
  66. \ , 'vimCommentTitle' : [ 250, 233, '', 'bcbcbc', '121212', '']
  67. \ , 'vimCommentString' : [ 245, 233, '', '8a8a8a', '121212', '']
  68. \
  69. \ , 'TabLine' : [ 231, 238, '', 'ffffff', '444444', '']
  70. \ , 'TabLineSel' : [ 255, '', 'bold', 'eeeeee', '', 'bold']
  71. \ , 'TabLineFill' : [ 240, 238, '', '585858', '444444', '']
  72. \ , 'TabLineNumber' : [ 160, 238, 'bold', 'd70000', '444444', 'bold']
  73. \ , 'TabLineClose' : [ 245, 238, 'bold', '8a8a8a', '444444', 'bold']
  74. \
  75. \ , 'SpellCap' : [ 231, 31, 'bold', 'ffffff', '0087af', 'bold']
  76. \
  77. \ , 'SpecialKey' : [ 239, '', '', '4e4e4e', '', '']
  78. \ , 'NonText' : [ 88, '', '', '870000', '', '']
  79. \ , 'MatchParen' : [ 231, 25, 'bold', 'ffffff', '005faf', 'bold']
  80. \
  81. \ , 'Constant' : [ 137, '', 'bold', 'af875f', '', 'bold']
  82. \ , 'Special' : [ 150, '', '', 'afd787', '', '']
  83. \ , 'Identifier' : [ 66, '', 'bold', '5f8787', '', 'bold']
  84. \ , 'Statement' : [ 186, '', 'bold', 'd7d787', '', 'bold']
  85. \ , 'PreProc' : [ 247, '', '', '9e9e9e', '', '']
  86. \ , 'Type' : [ 67, '', 'bold', '5f87af', '', 'bold']
  87. \ , 'String' : [ 143, '', '', 'afaf5f', '', '']
  88. \ , 'Number' : [ 173, '', '', 'd7875f', '', '']
  89. \ , 'Define' : [ 173, '', '', 'd7875f', '', '']
  90. \ , 'Error' : [ 208, 124, '', 'ff8700', 'af0000', '']
  91. \ , 'Function' : [ 179, '', '', 'd7af5f', '', '']
  92. \ , 'Include' : [ 173, '', '', 'd7875f', '', '']
  93. \ , 'PreCondit' : [ 173, '', '', 'd7875f', '', '']
  94. \ , 'Keyword' : [ 173, '', '', 'd7875f', '', '']
  95. \ , 'Search' : [ 231, 131, '', '000000', 'ffff5f', 'underline,bold']
  96. \ , 'Title' : [ 231, '', '', 'ffffff', '', '']
  97. \ , 'Delimiter' : [ 246, '', '', '949494', '', '']
  98. \ , 'StorageClass' : [ 187, '', '', 'd7d7af', '', '']
  99. \
  100. \ , 'TODO' : [ 228, 94, 'bold', 'ffff87', '875f00', 'bold']
  101. \
  102. \ , 'SyntasticWarning' : [ 220, 94, '', 'ffff87', '875f00', 'bold']
  103. \ , 'SyntasticError' : [ 202, 52, '', 'ffff87', '875f00', 'bold']
  104. \
  105. \ , 'Pmenu' : [ 248, 240, '', 'a8a8a8', '585858', '']
  106. \ , 'PmenuSel' : [ 253, 245, '', 'dadada', '8a8a8a', '']
  107. \ , 'PmenuSbar' : [ 253, 248, '', 'dadada', 'a8a8a8', '']
  108. \
  109. \ , 'phpEOL' : [ 245, '', '', 'dadada', '', '']
  110. \ , 'phpStringDelim' : [ 94, '', '', '875f00', '', '']
  111. \ , 'phpDelimiter' : [ 160, '', '', 'd70000', '', '']
  112. \ , 'phpFunctions' : [ 221, '', 'bold', 'ffd75f', '', 'bold']
  113. \ , 'phpBoolean' : [ 172, '', 'bold', 'd78700', '', 'bold']
  114. \ , 'phpOperator' : [ 215, '', '', 'ffaf5f', '', '']
  115. \ , 'phpMemberSelector' : [ 138, '', 'bold', 'af8787', '', 'bold']
  116. \ , 'phpParent' : [ 227, '', '', 'ffff5f', '', '']
  117. \
  118. \ , 'PHPClassTag' : [ 253, '', '', 'dadada', '', '']
  119. \ , 'PHPInterfaceTag' : [ 253, '', '', 'dadada', '', '']
  120. \ , 'PHPFunctionTag' : [ 222, '', 'bold', 'ffd787', '', 'bold']
  121. \
  122. \ , 'pythonDocString' : [ 240, 233, '', '585858', '121212', '']
  123. \ , 'pythonDocStringTitle' : [ 245, 233, '', 'dadada', '121212', '']
  124. \ , 'pythonRun' : [ 65, '', '', '5f875f', '', '']
  125. \ , 'pythonBuiltinObj' : [ 67, '', 'bold', '5f87af', '', 'bold']
  126. \ , 'pythonSelf' : [ 250, '', 'bold', 'bcbcbc', '', 'bold']
  127. \ , 'pythonFunction' : [ 179, '', 'bold', 'd7af5f', '', 'bold']
  128. \ , 'pythonClass' : [ 221, '', 'bold', 'ffd75f', '', 'bold']
  129. \ , 'pythonExClass' : [ 130, '', '', 'af5f00', '', '']
  130. \ , 'pythonException' : [ 130, '', 'bold', 'af5f00', '', 'bold']
  131. \ , 'pythonOperator' : [ 186, '', '', 'd7d787', '', '']
  132. \ , 'pythonPreCondit' : [ 152, '', 'bold', 'afd7d7', '', 'bold']
  133. \ , 'pythonDottedName' : [ 166, '', '', 'd75f00', '', '']
  134. \ , 'pythonDecorator' : [ 124, '', 'bold', 'af0000', '', 'bold']
  135. \
  136. \ , 'PythonInterfaceTag' : [ 109, '', '', '87afaf', '', '']
  137. \ , 'PythonClassTag' : [ 221, '', '', 'ffd75f', '', '']
  138. \ , 'PythonFunctionTag' : [ 109, '', '', '87afaf', '', '']
  139. \ , 'PythonVariableTag' : [ 253, '', '', 'dadada', '', '']
  140. \ , 'PythonMemberTag' : [ 145, '', '', 'afafaf', '', '']
  141. \
  142. \ , 'CTagsImport' : [ 109, '', '', '87afaf', '', '']
  143. \ , 'CTagsClass' : [ 221, '', '', 'ffd75f', '', '']
  144. \ , 'CTagsFunction' : [ 109, '', '', '87afaf', '', '']
  145. \ , 'CTagsGlobalVariable' : [ 253, '', '', 'dadada', '', '']
  146. \ , 'CTagsMember' : [ 145, '', '', 'afafaf', '', '']
  147. \
  148. \ , 'xmlTag' : [ 149, '', 'bold', 'afd75f', '', 'bold']
  149. \ , 'xmlTagName' : [ 250, '', '', 'bcbcbc', '', '']
  150. \ , 'xmlEndTag' : [ 209, '', 'bold', 'ff875f', '', 'bold']
  151. \
  152. \ , 'cssImportant' : [ 166, '', 'bold', 'd75f00', '', 'bold']
  153. \
  154. \ , 'DiffAdd' : [ 112, 22, '', '87d700', '005f00', '']
  155. \ , 'DiffChange' : [ 220, 94, '', 'ffd700', '875f00', '']
  156. \ , 'DiffDelete' : [ 160, '', '', 'd70000', '', '']
  157. \ , 'DiffText' : [ 220, 94, 'reverse,bold', 'ffd700', '875f00', 'reverse,bold']
  158. \
  159. \ , 'diffLine' : [ 68, '', 'bold', '5f87d7', '', 'bold']
  160. \ , 'diffFile' : [ 242, '', '', '6c6c6c', '', '']
  161. \ , 'diffNewFile' : [ 242, '', '', '6c6c6c', '', '']
  162. \ })
  163. hi link htmlTag xmlTag
  164. hi link htmlTagName xmlTagName
  165. hi link htmlEndTag xmlEndTag
  166. hi link phpCommentTitle vimCommentTitle
  167. hi link phpDocTags vimCommentString
  168. hi link phpDocParam vimCommentTitle
  169. hi link diffAdded DiffAdd
  170. hi link diffChanged DiffChange
  171. hi link diffRemoved DiffDelete