Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

general & color settings

  • Loading branch information...
commit 2b7724ae9eb4802e5b9ddaa40556b7760f85b2cf 1 parent 0340df5
Tsung-Hsiang Chang vgod authored
165 colors/moria.vim
... ... @@ -0,0 +1,165 @@
  1 +if exists("g:moria_style")
  2 + let s:moria_style = g:moria_style
  3 +else
  4 + let s:moria_style = &background
  5 +endif
  6 +
  7 +execute "command! -nargs=1 Colo let g:moria_style = \"<args>\" | colo moria"
  8 +
  9 +if s:moria_style == 'dark'
  10 + set background=dark
  11 +elseif s:moria_style == 'light'
  12 + set background=light
  13 +else
  14 + let s:moria_style = &background
  15 +endif
  16 +
  17 +hi clear
  18 +
  19 +if exists("syntax_on")
  20 + syntax reset
  21 +endif
  22 +
  23 +let colors_name = "moria"
  24 +
  25 +if s:moria_style == "dark"
  26 + hi Normal ctermbg=0 ctermfg=7 guibg=#202020 guifg=#d0d0d0 gui=none
  27 +
  28 + hi Cursor guibg=#ffa500 guifg=bg gui=none
  29 + hi CursorColumn guibg=#444444 gui=none
  30 + hi CursorLine guibg=#444444 gui=none
  31 + hi DiffAdd guibg=#008b00 guifg=fg gui=none
  32 + hi DiffChange guibg=#00008b guifg=fg gui=none
  33 + hi DiffDelete guibg=#8b0000 guifg=fg gui=none
  34 + hi DiffText guibg=#0000cd guifg=fg gui=bold
  35 + hi Directory guibg=bg guifg=#1e90ff gui=none
  36 + hi ErrorMsg guibg=#ee2c2c guifg=#ffffff gui=bold
  37 + hi FoldColumn ctermbg=bg guibg=bg guifg=#a0b0c0 gui=none
  38 + hi Folded guibg=#585858 guifg=#c0d0e0 gui=none
  39 + hi IncSearch guibg=#e0cd78 guifg=#000000 gui=none
  40 + hi LineNr guifg=#a0b0c0 gui=none
  41 + hi ModeMsg guibg=bg guifg=fg gui=bold
  42 + hi MoreMsg guibg=bg guifg=#d0d097 gui=bold
  43 + hi NonText ctermfg=8 guibg=bg guifg=#a0b0c0 gui=bold
  44 + hi Pmenu guibg=#8090a0 guifg=#000000 gui=none
  45 + hi PmenuSbar guibg=#607080 guifg=fg gui=none
  46 + hi PmenuSel guibg=#e0e000 guifg=#000000 gui=none
  47 + hi PmenuThumb guibg=#c0d0e0 guifg=bg gui=none
  48 + hi Question guibg=bg guifg=#e0c07e gui=bold
  49 + hi Search guibg=#90e090 guifg=#000000 gui=none
  50 + hi SignColumn ctermbg=bg guibg=bg guifg=#a0a0a0 gui=none
  51 + hi SpecialKey guibg=bg guifg=#e0c07e gui=none
  52 + if has("spell")
  53 + hi SpellBad guisp=#ee2c2c gui=undercurl
  54 + hi SpellCap guisp=#2c2cee gui=undercurl
  55 + hi SpellLocal guisp=#2ceeee gui=undercurl
  56 + hi SpellRare guisp=#ee2cee gui=undercurl
  57 + endif
  58 + hi StatusLine ctermbg=7 ctermfg=0 guibg=#485868 guifg=fg gui=bold
  59 + hi StatusLineNC ctermbg=8 ctermfg=0 guibg=#304050 guifg=fg gui=none
  60 + hi TabLine guibg=#566676 guifg=fg gui=underline
  61 + hi TabLineFill guibg=#c0d0e0 guifg=bg gui=none
  62 + hi TabLineSel guibg=bg guifg=fg gui=bold
  63 + hi Title ctermbg=0 ctermfg=15 guifg=fg gui=bold
  64 + hi VertSplit ctermbg=7 ctermfg=0 guibg=#304050 guifg=fg gui=none
  65 + if version >= 700
  66 + hi Visual ctermbg=7 ctermfg=0 guibg=#607080 gui=none
  67 + else
  68 + hi Visual ctermbg=7 ctermfg=0 guibg=#607080 guifg=fg gui=none
  69 + endif
  70 + hi VisualNOS guibg=bg guifg=#90a0b0 gui=bold,underline
  71 + hi WarningMsg guibg=bg guifg=#ee2c2c gui=bold
  72 + hi WildMenu guibg=#e0e000 guifg=#000000 gui=bold
  73 +
  74 + hi Comment guibg=bg guifg=#d0d0a0 gui=none
  75 + hi Constant guibg=bg guifg=#87df71 gui=none
  76 + hi Error guibg=bg guifg=#ee2c2c gui=none
  77 + hi Identifier guibg=bg guifg=#7ee0ce gui=none
  78 + hi Ignore guibg=bg guifg=bg gui=none
  79 + hi lCursor guibg=#00e700 guifg=#000000 gui=none
  80 + hi MatchParen guibg=#008b8b gui=none
  81 + hi PreProc guibg=bg guifg=#d7a0d7 gui=none
  82 + hi Special guibg=bg guifg=#e0c07e gui=none
  83 + hi Statement guibg=bg guifg=#7ec0ee gui=none
  84 + hi Todo guibg=#e0e000 guifg=#000000 gui=none
  85 + hi Type guibg=bg guifg=#f09479 gui=none
  86 + hi Underlined guibg=bg guifg=#00a0ff gui=underline
  87 +
  88 + hi htmlBold ctermbg=0 ctermfg=15 guibg=bg guifg=fg gui=bold
  89 + hi htmlItalic ctermbg=0 ctermfg=15 guibg=bg guifg=fg gui=italic
  90 + hi htmlUnderline ctermbg=0 ctermfg=15 guibg=bg guifg=fg gui=underline
  91 + hi htmlBoldItalic ctermbg=0 ctermfg=15 guibg=bg guifg=fg gui=bold,italic
  92 + hi htmlBoldUnderline ctermbg=0 ctermfg=15 guibg=bg guifg=fg gui=bold,underline
  93 + hi htmlBoldUnderlineItalic ctermbg=0 ctermfg=15 guibg=bg guifg=fg gui=bold,underline,italic
  94 + hi htmlUnderlineItalic ctermbg=0 ctermfg=15 guibg=bg guifg=fg gui=underline,italic
  95 +elseif s:moria_style == "light"
  96 + hi Normal ctermbg=15 ctermfg=0 guibg=#ffffff guifg=#000000 gui=none
  97 +
  98 + hi Cursor guibg=#cd4e00 guifg=bg gui=none
  99 + hi CursorColumn guibg=#dbdbdb gui=none
  100 + hi CursorLine guibg=#dbdbdb gui=none
  101 + hi DiffAdd guibg=#008b00 guifg=#ffffff gui=none
  102 + hi DiffChange guibg=#00008b guifg=#ffffff gui=none
  103 + hi DiffDelete guibg=#8b0000 guifg=#ffffff gui=none
  104 + hi DiffText guibg=#0000cd guifg=#ffffff gui=bold
  105 + hi Directory guibg=bg guifg=#0000f0 gui=none
  106 + hi ErrorMsg guibg=#ee2c2c guifg=#ffffff gui=bold
  107 + hi FoldColumn ctermbg=bg guibg=bg guifg=#506070 gui=none
  108 + hi Folded guibg=#c8c8c8 guifg=fg gui=none
  109 + hi IncSearch guibg=#ffcd78 gui=none
  110 + hi LineNr guifg=#506070 gui=none
  111 + hi ModeMsg ctermbg=15 ctermfg=0 guibg=bg guifg=fg gui=bold
  112 + hi MoreMsg guibg=bg guifg=#1f3f81 gui=bold
  113 + hi NonText ctermfg=8 guibg=bg guifg=#506070 gui=bold
  114 + hi Pmenu guibg=#8a9aaa guifg=#000000 gui=none
  115 + hi PmenuSbar guibg=#708090 guifg=fg gui=none
  116 + hi PmenuSel guibg=#ffff00 guifg=#000000 gui=none
  117 + hi PmenuThumb guibg=#b0c0d0 guifg=fg gui=none
  118 + hi Question guibg=bg guifg=#813f11 gui=bold
  119 + hi Search guibg=#a0f0a0 gui=none
  120 + hi SignColumn ctermbg=bg guibg=bg guifg=#707070 gui=none
  121 + hi SpecialKey guibg=bg guifg=#912f11 gui=none
  122 + if has("spell")
  123 + hi SpellBad guisp=#ee2c2c gui=undercurl
  124 + hi SpellCap guisp=#2c2cee gui=undercurl
  125 + hi SpellLocal guisp=#008b8b gui=undercurl
  126 + hi SpellRare guisp=#ee2cee gui=undercurl
  127 + endif
  128 + hi StatusLine ctermbg=0 ctermfg=15 guibg=#a8b8c8 guifg=fg gui=bold
  129 + hi StatusLineNC ctermbg=7 ctermfg=0 guibg=#b8c8d8 guifg=fg gui=none
  130 + hi TabLine guibg=#b4c4d4 guifg=fg gui=underline
  131 + hi TabLineFill guibg=fg guifg=bg gui=none
  132 + hi TabLineSel guibg=bg guifg=fg gui=bold
  133 + hi Title guifg=fg gui=bold
  134 + hi VertSplit ctermbg=7 ctermfg=0 guibg=#b8c8d8 guifg=fg gui=none
  135 + if version >= 700
  136 + hi Visual ctermbg=7 ctermfg=0 guibg=#c8d8e8 gui=none
  137 + else
  138 + hi Visual ctermbg=7 ctermfg=0 guibg=#c8d8e8 guifg=fg gui=none
  139 + endif
  140 + hi VisualNOS guibg=bg guifg=#90a0b0 gui=bold,underline
  141 + hi WarningMsg guibg=bg guifg=#ee2c2c gui=bold
  142 + hi WildMenu guibg=#ffff00 guifg=fg gui=bold
  143 +
  144 + hi Comment guibg=bg guifg=#786000 gui=none
  145 + hi Constant guibg=bg guifg=#077807 gui=none
  146 + hi Error guibg=bg guifg=#ee2c2c gui=none
  147 + hi Identifier guibg=bg guifg=#007080 gui=none
  148 + hi Ignore guibg=bg guifg=bg gui=none
  149 + hi lCursor guibg=#008000 guifg=#ffffff gui=none
  150 + hi MatchParen guibg=#00ffff gui=none
  151 + hi PreProc guibg=bg guifg=#800090 gui=none
  152 + hi Special guibg=bg guifg=#912f11 gui=none
  153 + hi Statement guibg=bg guifg=#1f3f81 gui=bold
  154 + hi Todo guibg=#ffff00 guifg=fg gui=none
  155 + hi Type guibg=bg guifg=#912f11 gui=bold
  156 + hi Underlined guibg=bg guifg=#0000cd gui=underline
  157 +
  158 + hi htmlBold guibg=bg guifg=fg gui=bold
  159 + hi htmlItalic guibg=bg guifg=fg gui=italic
  160 + hi htmlUnderline guibg=bg guifg=fg gui=underline
  161 + hi htmlBoldItalic guibg=bg guifg=fg gui=bold,italic
  162 + hi htmlBoldUnderline guibg=bg guifg=fg gui=bold,underline
  163 + hi htmlBoldUnderlineItalic guibg=bg guifg=fg gui=bold,underline,italic
  164 + hi htmlUnderlineItalic guibg=bg guifg=fg gui=underline,italic
  165 +endif
601 colors/peaksea.vim
... ... @@ -0,0 +1,601 @@
  1 +" Vim color file --- psc (peak sea color) "Lite version"
  2 +" Maintainer: Pan, Shi Zhu <Go to the following URL for my email>
  3 +" URL: http://vim.sourceforge.net/scripts/script.php?script_id=760
  4 +" Last Change: 5 Feb 2010
  5 +" Version: 3.4
  6 +"
  7 +" Comments and e-mails are welcomed, thanks.
  8 +"
  9 +" The peaksea color is simply a colorscheme with the default settings of
  10 +" the original ps_color. Lite version means there's no custom settings
  11 +" and fancy features such as integration with reloaded.vim
  12 +"
  13 +" The full version of ps_color.vim will be maintained until Vim 8.
  14 +" By then there will be only the lite version: peaksea.vim
  15 +"
  16 +" Note: Please set the background option in your .vimrc and/or .gvimrc
  17 +"
  18 +" It is much better *not* to set 'background' option inside
  19 +" a colorscheme file. because ":set background" improperly
  20 +" may cause colorscheme be sourced twice
  21 +"
  22 +" Color Scheme Overview:
  23 +" :ru syntax/hitest.vim
  24 +"
  25 +" Relevant Help:
  26 +" :h highlight-groups
  27 +" :h psc-cterm-color-table
  28 +"
  29 +" Colors Order:
  30 +" #rrggbb
  31 +"
  32 +
  33 +hi clear
  34 +
  35 +if exists("syntax_on")
  36 + syntax reset
  37 +endif
  38 +
  39 +let g:colors_name = expand("<sfile>:t:r")
  40 +
  41 +" I don't want to abuse folding, but here folding is used to avoid confusion.
  42 +if &background=='light'
  43 + " for background=light {{{2
  44 + " LIGHT COLOR DEFINE START
  45 +
  46 + hi Normal guifg=#000000 guibg=#e0e0e0 gui=NONE
  47 + hi Search guifg=NONE guibg=#f8f8f8 gui=NONE
  48 + hi Visual guifg=NONE guibg=#a6caf0 gui=NONE
  49 + hi Cursor guifg=#f0f0f0 guibg=#008000 gui=NONE
  50 + " The idea of CursorIM is pretty good, however, the feature is still buggy
  51 + " in the current version (Vim 7.0).
  52 + " The following line will be kept commented until the bug fixed.
  53 + "
  54 + " hi CursorIM guifg=#f0f0f0 guibg=#800080
  55 + hi Special guifg=#907000 guibg=NONE gui=NONE
  56 + hi Comment guifg=#606000 guibg=NONE gui=NONE
  57 + hi Number guifg=#907000 guibg=NONE gui=NONE
  58 + hi Constant guifg=#007068 guibg=NONE gui=NONE
  59 + hi StatusLine guifg=fg guibg=#a6caf0 gui=NONE
  60 + hi LineNr guifg=#686868 guibg=NONE gui=NONE
  61 + hi Question guifg=fg guibg=#d0d090 gui=NONE
  62 + hi PreProc guifg=#009030 guibg=NONE gui=NONE
  63 + hi Statement guifg=#2060a8 guibg=NONE gui=NONE
  64 + hi Type guifg=#0850a0 guibg=NONE gui=NONE
  65 + hi Todo guifg=#800000 guibg=#e0e090 gui=NONE
  66 + " NOTE THIS IS IN THE WARM SECTION
  67 + hi Error guifg=#c03000 guibg=NONE gui=NONE
  68 + hi Identifier guifg=#a030a0 guibg=NONE gui=NONE
  69 + hi ModeMsg guifg=fg guibg=#b0b0e0 gui=NONE
  70 + hi VisualNOS guifg=fg guibg=#b0b0e0 gui=NONE
  71 + hi SpecialKey guifg=#1050a0 guibg=NONE gui=NONE
  72 + hi NonText guifg=#002090 guibg=#d0d0d0 gui=NONE
  73 + hi Directory guifg=#a030a0 guibg=NONE gui=NONE
  74 + hi ErrorMsg guifg=fg guibg=#f0b090 gui=NONE
  75 + hi MoreMsg guifg=#489000 guibg=NONE gui=NONE
  76 + hi Title guifg=#a030a0 guibg=NONE gui=NONE
  77 + hi WarningMsg guifg=#b02000 guibg=NONE gui=NONE
  78 + hi WildMenu guifg=fg guibg=#d0d090 gui=NONE
  79 + hi Folded guifg=NONE guibg=#b0e0b0 gui=NONE
  80 + hi FoldColumn guifg=fg guibg=#90e090 gui=NONE
  81 + hi DiffAdd guifg=NONE guibg=#b0b0e0 gui=NONE
  82 + hi DiffChange guifg=NONE guibg=#e0b0e0 gui=NONE
  83 + hi DiffDelete guifg=#002090 guibg=#d0d0d0 gui=NONE
  84 + hi DiffText guifg=NONE guibg=#c0e080 gui=NONE
  85 + hi SignColumn guifg=fg guibg=#90e090 gui=NONE
  86 +
  87 + hi IncSearch guifg=#f0f0f0 guibg=#806060 gui=NONE
  88 + hi StatusLineNC guifg=fg guibg=#c0c0c0 gui=NONE
  89 + hi VertSplit guifg=fg guibg=#c0c0c0 gui=NONE
  90 + hi Underlined guifg=#6a5acd guibg=NONE gui=underline
  91 + hi Ignore guifg=bg guibg=NONE
  92 + " NOTE THIS IS IN THE WARM SECTION
  93 + if v:version >= 700
  94 + if has('spell')
  95 + hi SpellBad guifg=NONE guibg=NONE guisp=#c03000
  96 + hi SpellCap guifg=NONE guibg=NONE guisp=#2060a8
  97 + hi SpellRare guifg=NONE guibg=NONE guisp=#a030a0
  98 + hi SpellLocal guifg=NONE guibg=NONE guisp=#007068
  99 + endif
  100 + hi Pmenu guifg=fg guibg=#e0b0e0
  101 + hi PmenuSel guifg=#f0f0f0 guibg=#806060 gui=NONE
  102 + hi PmenuSbar guifg=fg guibg=#c0c0c0 gui=NONE
  103 + hi PmenuThumb guifg=fg guibg=#c0e080 gui=NONE
  104 + hi TabLine guifg=fg guibg=#c0c0c0 gui=NONE
  105 + hi TabLineFill guifg=fg guibg=#c0c0c0 gui=NONE
  106 + hi TabLineSel guifg=fg guibg=NONE gui=NONE
  107 + hi CursorColumn guifg=NONE guibg=#f0b090
  108 + hi CursorLine guifg=NONE guibg=NONE gui=underline
  109 + hi MatchParen guifg=NONE guibg=#c0e080
  110 + endif
  111 +
  112 + " LIGHT COLOR DEFINE END
  113 +
  114 + " Vim 7 added stuffs
  115 + if v:version >= 700
  116 + hi Ignore gui=NONE
  117 +
  118 + " the gui=undercurl guisp could only support in Vim 7
  119 + if has('spell')
  120 + hi SpellBad gui=undercurl
  121 + hi SpellCap gui=undercurl
  122 + hi SpellRare gui=undercurl
  123 + hi SpellLocal gui=undercurl
  124 + endif
  125 + hi TabLine gui=underline
  126 + hi TabLineFill gui=underline
  127 + hi CursorLine gui=underline
  128 + endif
  129 +
  130 + " For reversed stuffs, clear the reversed prop and set the bold prop again
  131 + hi IncSearch gui=bold
  132 + hi StatusLine gui=bold
  133 + hi StatusLineNC gui=bold
  134 + hi VertSplit gui=bold
  135 + hi Visual gui=bold
  136 +
  137 + " Enable the bold property
  138 + hi Question gui=bold
  139 + hi DiffText gui=bold
  140 + hi Statement gui=bold
  141 + hi Type gui=bold
  142 + hi MoreMsg gui=bold
  143 + hi ModeMsg gui=bold
  144 + hi NonText gui=bold
  145 + hi Title gui=bold
  146 + hi DiffDelete gui=bold
  147 + hi TabLineSel gui=bold
  148 +
  149 + " gui define for background=light end here
  150 +
  151 + " generally, a dumb terminal is dark, we assume the light terminal has 256
  152 + " color support.
  153 + if &t_Co==8 || &t_Co==16
  154 + set t_Co=256
  155 + endif
  156 + if &t_Co==256
  157 + " 256color light terminal support here
  158 +
  159 + hi Normal ctermfg=16 ctermbg=254 cterm=NONE
  160 + " Comment/Uncomment the following line to disable/enable transparency
  161 + "hi Normal ctermfg=16 ctermbg=NONE cterm=NONE
  162 + hi Search ctermfg=NONE ctermbg=231 cterm=NONE
  163 + hi Visual ctermfg=NONE ctermbg=153 cterm=NONE
  164 + hi Cursor ctermfg=255 ctermbg=28 cterm=NONE
  165 + " hi CursorIM ctermfg=255 ctermbg=90
  166 + hi Special ctermfg=94 ctermbg=NONE cterm=NONE
  167 + hi Comment ctermfg=58 ctermbg=NONE cterm=NONE
  168 + hi Number ctermfg=94 ctermbg=NONE cterm=NONE
  169 + hi Constant ctermfg=23 ctermbg=NONE cterm=NONE
  170 + hi StatusLine ctermfg=fg ctermbg=153 cterm=NONE
  171 + hi LineNr ctermfg=242 ctermbg=NONE cterm=NONE
  172 + hi Question ctermfg=fg ctermbg=186 cterm=NONE
  173 + hi PreProc ctermfg=29 ctermbg=NONE cterm=NONE
  174 + hi Statement ctermfg=25 ctermbg=NONE cterm=NONE
  175 + hi Type ctermfg=25 ctermbg=NONE cterm=NONE
  176 + hi Todo ctermfg=88 ctermbg=186 cterm=NONE
  177 + " NOTE THIS IS IN THE WARM SECTION
  178 + hi Error ctermfg=130 ctermbg=NONE cterm=NONE
  179 + hi Identifier ctermfg=133 ctermbg=NONE cterm=NONE
  180 + hi ModeMsg ctermfg=fg ctermbg=146 cterm=NONE
  181 + hi VisualNOS ctermfg=fg ctermbg=146 cterm=NONE
  182 + hi SpecialKey ctermfg=25 ctermbg=NONE cterm=NONE
  183 + hi NonText ctermfg=18 ctermbg=252 cterm=NONE
  184 + " Comment/Uncomment the following line to disable/enable transparency
  185 + "hi NonText ctermfg=18 ctermbg=NONE cterm=NONE
  186 + hi Directory ctermfg=133 ctermbg=NONE cterm=NONE
  187 + hi ErrorMsg ctermfg=fg ctermbg=216 cterm=NONE
  188 + hi MoreMsg ctermfg=64 ctermbg=NONE cterm=NONE
  189 + hi Title ctermfg=133 ctermbg=NONE cterm=NONE
  190 + hi WarningMsg ctermfg=124 ctermbg=NONE cterm=NONE
  191 + hi WildMenu ctermfg=fg ctermbg=186 cterm=NONE
  192 + hi Folded ctermfg=NONE ctermbg=151 cterm=NONE
  193 + hi FoldColumn ctermfg=fg ctermbg=114 cterm=NONE
  194 + hi DiffAdd ctermfg=NONE ctermbg=146 cterm=NONE
  195 + hi DiffChange ctermfg=NONE ctermbg=182 cterm=NONE
  196 + hi DiffDelete ctermfg=18 ctermbg=252 cterm=NONE
  197 + hi DiffText ctermfg=NONE ctermbg=150 cterm=NONE
  198 + hi SignColumn ctermfg=fg ctermbg=114 cterm=NONE
  199 +
  200 + hi IncSearch ctermfg=255 ctermbg=95 cterm=NONE
  201 + hi StatusLineNC ctermfg=fg ctermbg=250 cterm=NONE
  202 + hi VertSplit ctermfg=fg ctermbg=250 cterm=NONE
  203 + hi Underlined ctermfg=62 ctermbg=NONE cterm=underline
  204 + hi Ignore ctermfg=bg ctermbg=NONE
  205 + " NOTE THIS IS IN THE WARM SECTION
  206 + if v:version >= 700
  207 + if has('spell')
  208 + if 0
  209 + " ctermsp is not supported in Vim7, we ignore it.
  210 + hi SpellBad cterm=undercurl ctermbg=NONE ctermfg=130
  211 + hi SpellCap cterm=undercurl ctermbg=NONE ctermfg=25
  212 + hi SpellRare cterm=undercurl ctermbg=NONE ctermfg=133
  213 + hi SpellLocal cterm=undercurl ctermbg=NONE ctermfg=23
  214 + else
  215 + hi SpellBad cterm=undercurl ctermbg=NONE ctermfg=NONE
  216 + hi SpellCap cterm=undercurl ctermbg=NONE ctermfg=NONE
  217 + hi SpellRare cterm=undercurl ctermbg=NONE ctermfg=NONE
  218 + hi SpellLocal cterm=undercurl ctermbg=NONE ctermfg=NONE
  219 + endif
  220 + endif
  221 + hi Pmenu ctermfg=fg ctermbg=182
  222 + hi PmenuSel ctermfg=255 ctermbg=95 cterm=NONE
  223 + hi PmenuSbar ctermfg=fg ctermbg=250 cterm=NONE
  224 + hi PmenuThumb ctermfg=fg ctermbg=150 cterm=NONE
  225 + hi TabLine ctermfg=fg ctermbg=250 cterm=NONE
  226 + hi TabLineFill ctermfg=fg ctermbg=250 cterm=NONE
  227 + hi TabLineSel ctermfg=fg ctermbg=NONE cterm=NONE
  228 + hi CursorColumn ctermfg=NONE ctermbg=216
  229 + hi CursorLine ctermfg=NONE ctermbg=NONE cterm=underline
  230 + hi MatchParen ctermfg=NONE ctermbg=150
  231 + endif
  232 +
  233 + hi TabLine cterm=underline
  234 + hi TabLineFill cterm=underline
  235 + hi CursorLine cterm=underline
  236 +
  237 + " For reversed stuffs, clear the reversed prop and set the bold prop again
  238 + hi IncSearch cterm=bold
  239 + hi StatusLine cterm=bold
  240 + hi StatusLineNC cterm=bold
  241 + hi VertSplit cterm=bold
  242 + hi Visual cterm=bold
  243 +
  244 + hi NonText cterm=bold
  245 + hi Question cterm=bold
  246 + hi Title cterm=bold
  247 + hi DiffDelete cterm=bold
  248 + hi DiffText cterm=bold
  249 + hi Statement cterm=bold
  250 + hi Type cterm=bold
  251 + hi MoreMsg cterm=bold
  252 + hi ModeMsg cterm=bold
  253 + hi TabLineSel cterm=bold
  254 +
  255 + "hi lCursor ctermfg=bg ctermbg=fg cterm=NONE
  256 + endif " t_Co==256
  257 + " }}}2
  258 +elseif &background=='dark'
  259 + " for background=dark {{{2
  260 + " DARK COLOR DEFINE START
  261 +
  262 + hi Normal guifg=#d0d0d0 guibg=#202020 gui=NONE
  263 + hi Comment guifg=#d0d090 guibg=NONE gui=NONE
  264 + hi Constant guifg=#80c0e0 guibg=NONE gui=NONE
  265 + hi Number guifg=#e0c060 guibg=NONE gui=NONE
  266 + hi Identifier guifg=#f0c0f0 guibg=NONE gui=NONE
  267 + hi Statement guifg=#c0d8f8 guibg=NONE gui=NONE
  268 + hi PreProc guifg=#60f080 guibg=NONE gui=NONE
  269 + hi Type guifg=#b0d0f0 guibg=NONE gui=NONE
  270 + hi Special guifg=#e0c060 guibg=NONE gui=NONE
  271 + hi Error guifg=#f08060 guibg=NONE gui=NONE
  272 + hi Todo guifg=#800000 guibg=#d0d090 gui=NONE
  273 + hi Search guifg=NONE guibg=#800000 gui=NONE
  274 + hi Visual guifg=#000000 guibg=#a6caf0 gui=NONE
  275 + hi Cursor guifg=#000000 guibg=#00f000 gui=NONE
  276 + " NOTE THIS IS IN THE COOL SECTION
  277 + " hi CursorIM guifg=#000000 guibg=#f000f0 gui=NONE
  278 + hi StatusLine guifg=#000000 guibg=#a6caf0 gui=NONE
  279 + hi LineNr guifg=#b0b0b0 guibg=NONE gui=NONE
  280 + hi Question guifg=#000000 guibg=#d0d090 gui=NONE
  281 + hi ModeMsg guifg=fg guibg=#000080 gui=NONE
  282 + hi VisualNOS guifg=fg guibg=#000080 gui=NONE
  283 + hi SpecialKey guifg=#b0d0f0 guibg=NONE gui=NONE
  284 + hi NonText guifg=#6080f0 guibg=#101010 gui=NONE
  285 + hi Directory guifg=#80c0e0 guibg=NONE gui=NONE
  286 + hi ErrorMsg guifg=#d0d090 guibg=#800000 gui=NONE
  287 + hi MoreMsg guifg=#c0e080 guibg=NONE gui=NONE
  288 + hi Title guifg=#f0c0f0 guibg=NONE gui=NONE
  289 + hi WarningMsg guifg=#f08060 guibg=NONE gui=NONE
  290 + hi WildMenu guifg=#000000 guibg=#d0d090 gui=NONE
  291 + hi Folded guifg=NONE guibg=#004000 gui=NONE
  292 + hi FoldColumn guifg=#e0e0e0 guibg=#008000 gui=NONE
  293 + hi DiffAdd guifg=NONE guibg=#000080 gui=NONE
  294 + hi DiffChange guifg=NONE guibg=#800080 gui=NONE
  295 + hi DiffDelete guifg=#6080f0 guibg=#202020 gui=NONE
  296 + hi DiffText guifg=#000000 guibg=#c0e080 gui=NONE
  297 + hi SignColumn guifg=#e0e0e0 guibg=#008000 gui=NONE
  298 + hi IncSearch guifg=#000000 guibg=#d0d0d0 gui=NONE
  299 + hi StatusLineNC guifg=#000000 guibg=#c0c0c0 gui=NONE
  300 + hi VertSplit guifg=#000000 guibg=#c0c0c0 gui=NONE
  301 + hi Underlined guifg=#80a0ff guibg=NONE gui=underline
  302 + hi Ignore guifg=#000000 guibg=NONE
  303 + " NOTE THIS IS IN THE COOL SECTION
  304 + if v:version >= 700
  305 + if has('spell')
  306 + " the guisp= could only support in Vim 7
  307 + hi SpellBad guifg=NONE guibg=NONE guisp=#f08060
  308 + hi SpellCap guifg=NONE guibg=NONE guisp=#6080f0
  309 + hi SpellRare guifg=NONE guibg=NONE guisp=#f0c0f0
  310 + hi SpellLocal guifg=NONE guibg=NONE guisp=#c0d8f8
  311 + endif
  312 + hi Pmenu guifg=fg guibg=#800080
  313 + hi PmenuSel guifg=#000000 guibg=#d0d0d0 gui=NONE
  314 + hi PmenuSbar guifg=fg guibg=#000080 gui=NONE
  315 + hi PmenuThumb guifg=fg guibg=#008000 gui=NONE
  316 + hi TabLine guifg=fg guibg=#008000 gui=NONE
  317 + hi TabLineFill guifg=fg guibg=#008000 gui=NONE
  318 + hi TabLineSel guifg=fg guibg=NONE gui=NONE
  319 + hi CursorColumn guifg=NONE guibg=#800000 gui=NONE
  320 + hi CursorLine guifg=NONE guibg=NONE gui=underline
  321 + hi MatchParen guifg=NONE guibg=#800080
  322 + endif
  323 +
  324 + " DARK COLOR DEFINE END
  325 +
  326 + " Vim 7 added stuffs
  327 + if v:version >= 700
  328 + hi Ignore gui=NONE
  329 +
  330 + " the gui=undercurl could only support in Vim 7
  331 + if has('spell')
  332 + hi SpellBad gui=undercurl
  333 + hi SpellCap gui=undercurl
  334 + hi SpellRare gui=undercurl
  335 + hi SpellLocal gui=undercurl
  336 + endif
  337 + hi TabLine gui=underline
  338 + hi TabLineFill gui=underline
  339 + hi Underlined gui=underline
  340 + hi CursorLine gui=underline
  341 + endif
  342 +
  343 + " gui define for background=dark end here
  344 +
  345 + if &t_Co==8 || &t_Co==16
  346 + " for 8-color and 16-color term
  347 + hi Normal ctermfg=LightGrey ctermbg=Black
  348 + hi Special ctermfg=Yellow ctermbg=bg
  349 + hi Comment ctermfg=DarkYellow ctermbg=bg
  350 + hi Constant ctermfg=Blue ctermbg=bg
  351 + hi Number ctermfg=Yellow ctermbg=bg
  352 + hi LineNr ctermfg=DarkGrey ctermbg=bg
  353 + hi PreProc ctermfg=Green ctermbg=bg
  354 + hi Statement ctermfg=Cyan ctermbg=bg
  355 + hi Type ctermfg=Cyan ctermbg=bg
  356 + hi Error ctermfg=Red ctermbg=bg
  357 + hi Identifier ctermfg=Magenta ctermbg=bg
  358 + hi SpecialKey ctermfg=Cyan ctermbg=bg
  359 + hi NonText ctermfg=Blue ctermbg=bg
  360 + hi Directory ctermfg=Blue ctermbg=bg
  361 + hi MoreMsg ctermfg=Green ctermbg=bg
  362 + hi Title ctermfg=Magenta ctermbg=bg
  363 + hi WarningMsg ctermfg=Red ctermbg=bg
  364 + hi DiffDelete ctermfg=Blue ctermbg=bg
  365 +
  366 + hi Search ctermfg=NONE ctermbg=DarkRed
  367 + hi Visual ctermfg=Black ctermbg=DarkCyan
  368 + hi Cursor ctermfg=Black ctermbg=Green
  369 + hi StatusLine ctermfg=Black ctermbg=DarkCyan
  370 + hi Question ctermfg=Black ctermbg=DarkYellow
  371 + hi Todo ctermfg=DarkRed ctermbg=DarkYellow
  372 + hi Folded ctermfg=White ctermbg=DarkGreen
  373 + hi ModeMsg ctermfg=Grey ctermbg=DarkBlue
  374 + hi VisualNOS ctermfg=Grey ctermbg=DarkBlue
  375 + hi ErrorMsg ctermfg=DarkYellow ctermbg=DarkRed
  376 + hi WildMenu ctermfg=Black ctermbg=DarkYellow
  377 + hi FoldColumn ctermfg=White ctermbg=DarkGreen
  378 + hi SignColumn ctermfg=White ctermbg=DarkGreen
  379 + hi DiffText ctermfg=Black ctermbg=DarkYellow
  380 +
  381 + if v:version >= 700
  382 + if has('spell')
  383 + hi SpellBad ctermfg=NONE ctermbg=DarkRed
  384 + hi SpellCap ctermfg=NONE ctermbg=DarkBlue
  385 + hi SpellRare ctermfg=NONE ctermbg=DarkMagenta
  386 + hi SpellLocal ctermfg=NONE ctermbg=DarkGreen
  387 + endif
  388 + hi Pmenu ctermfg=fg ctermbg=DarkMagenta
  389 + hi PmenuSel ctermfg=Black ctermbg=fg
  390 + hi PmenuSbar ctermfg=fg ctermbg=DarkBlue
  391 + hi PmenuThumb ctermfg=fg ctermbg=DarkGreen
  392 + hi TabLine ctermfg=fg ctermbg=DarkGreen cterm=underline
  393 + hi TabLineFill ctermfg=fg ctermbg=DarkGreen cterm=underline
  394 + hi CursorColumn ctermfg=NONE ctermbg=DarkRed
  395 +
  396 + hi TabLineSel ctermfg=fg ctermbg=bg
  397 + hi CursorLine ctermfg=NONE ctermbg=bg cterm=underline
  398 +
  399 + hi MatchParen ctermfg=NONE ctermbg=DarkMagenta
  400 + endif
  401 + if &t_Co==8
  402 + " 8 colour terminal support, this assumes 16 colour is available through
  403 + " setting the 'bold' attribute, will get bright foreground colour.
  404 + " However, the bright background color is not available for 8-color terms.
  405 + "
  406 + " You can manually set t_Co=16 in your .vimrc to see if your terminal
  407 + " supports 16 colours,
  408 + hi DiffText cterm=none
  409 + hi Visual cterm=none
  410 + hi Cursor cterm=none
  411 + hi Comment cterm=none
  412 + hi Todo cterm=none
  413 + hi StatusLine cterm=none
  414 + hi Question cterm=none
  415 + hi DiffChange cterm=none
  416 + hi ModeMsg cterm=none
  417 + hi VisualNOS cterm=none
  418 + hi ErrorMsg cterm=none
  419 + hi WildMenu cterm=none
  420 + hi DiffAdd cterm=none
  421 + hi Folded cterm=none
  422 + hi DiffDelete cterm=none
  423 + hi Normal cterm=none
  424 + hi PmenuThumb cterm=none
  425 + hi Search cterm=bold
  426 + hi Special cterm=bold
  427 + hi Constant cterm=bold
  428 + hi Number cterm=bold
  429 + hi LineNr cterm=bold
  430 + hi PreProc cterm=bold
  431 + hi Statement cterm=bold
  432 + hi Type cterm=bold
  433 + hi Error cterm=bold
  434 + hi Identifier cterm=bold
  435 + hi SpecialKey cterm=bold
  436 + hi NonText cterm=bold
  437 + hi MoreMsg cterm=bold
  438 + hi Title cterm=bold
  439 + hi WarningMsg cterm=bold
  440 + hi FoldColumn cterm=bold
  441 + hi SignColumn cterm=bold
  442 + hi Directory cterm=bold
  443 + hi DiffDelete cterm=bold
  444 + else
  445 + " Background > 7 is only available with 16 or more colors
  446 +
  447 + hi WarningMsg cterm=none
  448 + hi Search cterm=none
  449 + hi Visual cterm=none
  450 + hi Cursor cterm=none
  451 + hi Special cterm=none
  452 + hi Comment cterm=none
  453 + hi Constant cterm=none
  454 + hi Number cterm=none
  455 + hi LineNr cterm=none
  456 + hi PreProc cterm=none
  457 + hi Todo cterm=none
  458 + hi Error cterm=none
  459 + hi Identifier cterm=none
  460 + hi Folded cterm=none
  461 + hi SpecialKey cterm=none
  462 + hi Directory cterm=none
  463 + hi ErrorMsg cterm=none
  464 + hi Normal cterm=none
  465 + hi PmenuThumb cterm=none
  466 + hi WildMenu cterm=none
  467 + hi FoldColumn cterm=none
  468 + hi SignColumn cterm=none
  469 + hi DiffAdd cterm=none
  470 + hi DiffChange cterm=none
  471 + hi Question cterm=none
  472 + hi StatusLine cterm=none
  473 + hi DiffText cterm=none
  474 + hi IncSearch cterm=reverse
  475 + hi StatusLineNC cterm=reverse
  476 + hi VertSplit cterm=reverse
  477 +
  478 + " Well, well, bold font with color 0-7 is not possible.
  479 + " So, the Question, StatusLine, DiffText cannot act as expected.
  480 +
  481 + hi Statement cterm=none
  482 + hi Type cterm=none
  483 + hi MoreMsg cterm=none
  484 + hi ModeMsg cterm=none
  485 + hi NonText cterm=none
  486 + hi Title cterm=none
  487 + hi VisualNOS cterm=none
  488 + hi DiffDelete cterm=none
  489 + hi TabLineSel cterm=none
  490 +
  491 + endif
  492 + elseif &t_Co==256
  493 + " 256color dark terminal support here
  494 + hi Normal ctermfg=252 ctermbg=234 cterm=NONE
  495 + " Comment/Uncomment the following line to disable/enable transparency
  496 + "hi Normal ctermfg=252 ctermbg=NONE cterm=NONE
  497 + hi Comment ctermfg=186 ctermbg=NONE cterm=NONE
  498 + hi Constant ctermfg=110 ctermbg=NONE cterm=NONE
  499 + hi Number ctermfg=179 ctermbg=NONE cterm=NONE
  500 + hi Identifier ctermfg=219 ctermbg=NONE cterm=NONE
  501 + hi Statement ctermfg=153 ctermbg=NONE cterm=NONE
  502 + hi PreProc ctermfg=84 ctermbg=NONE cterm=NONE
  503 + hi Type ctermfg=153 ctermbg=NONE cterm=NONE
  504 + hi Special ctermfg=179 ctermbg=NONE cterm=NONE
  505 + hi Error ctermfg=209 ctermbg=NONE cterm=NONE
  506 + hi Todo ctermfg=88 ctermbg=186 cterm=NONE
  507 + hi Search ctermfg=NONE ctermbg=88 cterm=NONE
  508 + hi Visual ctermfg=16 ctermbg=153 cterm=NONE
  509 + hi Cursor ctermfg=16 ctermbg=46 cterm=NONE
  510 + " NOTE THIS IS IN THE COOL SECTION
  511 + " hi CursorIM ctermfg=16 ctermbg=201 cterm=NONE
  512 + hi StatusLine ctermfg=16 ctermbg=153 cterm=NONE
  513 + hi LineNr ctermfg=249 ctermbg=NONE cterm=NONE
  514 + hi Question ctermfg=16 ctermbg=186 cterm=NONE
  515 + hi ModeMsg ctermfg=fg ctermbg=18 cterm=NONE
  516 + hi VisualNOS ctermfg=fg ctermbg=18 cterm=NONE
  517 + hi SpecialKey ctermfg=153 ctermbg=NONE cterm=NONE
  518 + hi NonText ctermfg=69 ctermbg=233 cterm=NONE
  519 + " Comment/Uncomment the following line to disable/enable transparency
  520 + "hi NonText ctermfg=69 ctermbg=NONE cterm=NONE
  521 + hi Directory ctermfg=110 ctermbg=NONE cterm=NONE
  522 + hi ErrorMsg ctermfg=186 ctermbg=88 cterm=NONE
  523 + hi MoreMsg ctermfg=150 ctermbg=NONE cterm=NONE
  524 + hi Title ctermfg=219 ctermbg=NONE cterm=NONE
  525 + hi WarningMsg ctermfg=209 ctermbg=NONE cterm=NONE
  526 + hi WildMenu ctermfg=16 ctermbg=186 cterm=NONE
  527 + hi Folded ctermfg=NONE ctermbg=22 cterm=NONE
  528 + hi FoldColumn ctermfg=254 ctermbg=28 cterm=NONE
  529 + hi DiffAdd ctermfg=NONE ctermbg=18 cterm=NONE
  530 + hi DiffChange ctermfg=NONE ctermbg=90 cterm=NONE
  531 + hi DiffDelete ctermfg=69 ctermbg=234 cterm=NONE
  532 + hi DiffText ctermfg=16 ctermbg=150 cterm=NONE
  533 + hi SignColumn ctermfg=254 ctermbg=28 cterm=NONE
  534 + hi IncSearch ctermfg=16 ctermbg=252 cterm=NONE
  535 + hi StatusLineNC ctermfg=16 ctermbg=250 cterm=NONE
  536 + hi VertSplit ctermfg=16 ctermbg=250 cterm=NONE
  537 + hi Underlined ctermfg=111 ctermbg=NONE cterm=underline
  538 + hi Ignore ctermfg=16 ctermbg=NONE
  539 + " NOTE THIS IS IN THE COOL SECTION
  540 + if v:version >= 700
  541 + if has('spell')
  542 + " the ctermsp= is not supported in Vim 7 we simply ignored
  543 + if 0
  544 + hi SpellBad cterm=undercurl ctermbg=NONE ctermfg=209
  545 + hi SpellCap cterm=undercurl ctermbg=NONE ctermfg=69
  546 + hi SpellRare cterm=undercurl ctermbg=NONE ctermfg=219
  547 + hi SpellLocal cterm=undercurl ctermbg=NONE ctermfg=153
  548 + else
  549 + hi SpellBad cterm=undercurl ctermbg=NONE ctermfg=NONE
  550 + hi SpellCap cterm=undercurl ctermbg=NONE ctermfg=NONE
  551 + hi SpellRare cterm=undercurl ctermbg=NONE ctermfg=NONE
  552 + hi SpellLocal cterm=undercurl ctermbg=NONE ctermfg=NONE
  553 + endif
  554 + endif
  555 + hi Pmenu ctermfg=fg ctermbg=90
  556 + hi PmenuSel ctermfg=16 ctermbg=252 cterm=NONE
  557 + hi PmenuSbar ctermfg=fg ctermbg=18 cterm=NONE
  558 + hi PmenuThumb ctermfg=fg ctermbg=28 cterm=NONE
  559 + hi TabLine ctermfg=fg ctermbg=28 cterm=NONE
  560 + hi TabLineFill ctermfg=fg ctermbg=28 cterm=NONE
  561 + hi TabLineSel ctermfg=fg ctermbg=NONE cterm=NONE
  562 + hi CursorColumn ctermfg=NONE ctermbg=88 cterm=NONE
  563 + hi CursorLine ctermfg=NONE ctermbg=NONE cterm=underline
  564 + hi MatchParen ctermfg=NONE ctermbg=90
  565 + hi TabLine cterm=underline
  566 + hi TabLineFill cterm=underline
  567 + hi Underlined cterm=underline
  568 + hi CursorLine cterm=underline
  569 + endif
  570 +
  571 + endif " t_Co
  572 +
  573 + " }}}2
  574 +endif
  575 +
  576 +" Links:
  577 +"
  578 +" COLOR LINKS DEFINE START
  579 +
  580 +hi link String Constant
  581 +" Character must be different from strings because in many languages
  582 +" (especially C, C++) a 'char' variable is scalar while 'string' is pointer,
  583 +" mistaken a 'char' for a 'string' will cause disaster!
  584 +hi link Character Number
  585 +hi link SpecialChar LineNr
  586 +hi link Tag Identifier
  587 +hi link cCppOut LineNr
  588 +" The following are not standard hi links,
  589 +" these are used by DrChip
  590 +hi link Warning MoreMsg
  591 +hi link Notice Constant
  592 +" these are used by Calendar
  593 +hi link CalToday PreProc
  594 +" these are used by TagList
  595 +hi link MyTagListTagName IncSearch
  596 +hi link MyTagListTagScope Constant
  597 +
  598 +" COLOR LINKS DEFINE END
  599 +
  600 +" vim:et:nosta:sw=2:ts=8:
  601 +" vim600:fdm=marker:fdl=1:
42 colors/vgod.vim
... ... @@ -0,0 +1,42 @@
  1 +" Color setting {
  2 + hi SignColumn ctermfg=White ctermbg=black
  3 + hi FoldColumn ctermfg=cyan ctermbg=black
  4 + hi Folded ctermfg=7 ctermbg=4
  5 + hi SpecialKey term=bold cterm=bold ctermfg=4
  6 + hi NonText term=bold cterm=bold ctermfg=4
  7 + hi Directory term=bold cterm=bold ctermfg=6
  8 + hi ErrorMsg term=standout cterm=bold ctermfg=7 ctermbg=1
  9 + hi IncSearch term=reverse cterm=reverse
  10 + hi Search term=reverse ctermfg=0 ctermbg=3
  11 + hi MoreMsg term=bold cterm=bold ctermfg=2
  12 + hi ModeMsg term=bold cterm=bold
  13 + hi LineNr term=underline cterm=bold ctermfg=3
  14 + hi Question term=standout cterm=bold ctermfg=2
  15 + hi StatusLine term=bold,reverse cterm=bold,reverse
  16 + hi StatusLineNC term=reverse cterm=reverse
  17 + hi Title term=bold cterm=bold ctermfg=5
  18 + hi Visual term=reverse cterm=reverse
  19 + hi VisualNOS term=bold,underline cterm=bold,underline
  20 + hi WarningMsg term=standout cterm=bold ctermfg=1
  21 + hi WildMenu term=standout ctermfg=0 ctermbg=3
  22 + hi Comment term=bold cterm=bold ctermfg=6
  23 + hi Constant term=underline cterm=bold ctermfg=5
  24 + hi Special term=bold cterm=bold ctermfg=1
  25 + hi Identifier term=underline cterm=bold ctermfg=6
  26 + hi Statement term=bold cterm=bold ctermfg=3
  27 + hi PreProc term=underline cterm=bold ctermfg=4
  28 + hi Type term=underline cterm=bold ctermfg=2
  29 + hi Ignore ctermfg=0
  30 + hi Error term=reverse cterm=bold ctermfg=7 ctermbg=1
  31 + hi Todo term=standout ctermfg=0 ctermbg=3
  32 +
  33 + hi TabLine guibg=#566676 guifg=fg gui=underline ctermbg=7
  34 + hi TabLineFill guibg=#c0d0e0 guifg=bg gui=none
  35 + hi TabLineSel guibg=bg guifg=fg gui=bold ctermbg=1
  36 + hi Cursor guibg=#cd4e00 guifg=bg gui=none ctermbg=3
  37 + hi CursorColumn guibg=#dbdbdb gui=none ctermbg=yellow
  38 + hi CursorLine guibg=#dbdbdb gui=none
  39 + "highlight Pmenu ctermfg=1 ctermbg=4 guibg=grey30
  40 + hi PmenuSel ctermfg=1 ctermbg=7 guibg=grey30
  41 +"}
  42 +
302 colors/wombat256.vim
... ... @@ -0,0 +1,302 @@
  1 +" Vim color file
  2 +" Maintainer: David Liang (bmdavll at gmail dot com)
  3 +" Last Change: November 28 2008
  4 +"
  5 +" wombat256.vim - a modified version of Wombat by Lars Nielsen that also
  6 +" works on xterms with 88 or 256 colors. The algorithm for approximating the
  7 +" GUI colors with the xterm palette is from desert256.vim by Henry So Jr.
  8 +
  9 +set background=dark
  10 +
  11 +if version > 580
  12 + hi clear
  13 + if exists("syntax_on")
  14 + syntax reset
  15 + endif
  16 +endif
  17 +
  18 +let g:colors_name = "wombat256"
  19 +
  20 +if !has("gui_running") && &t_Co != 88 && &t_Co != 256
  21 + finish
  22 +endif
  23 +
  24 +" functions {{{
  25 +" returns an approximate grey index for the given grey level
  26 +fun <SID>grey_number(x)
  27 + if &t_Co == 88
  28 + if a:x < 23
  29 + return 0
  30 + elseif a:x < 69
  31 + return 1
  32 + elseif a:x < 103
  33 + return 2
  34 + elseif a:x < 127
  35 + return 3
  36 + elseif a:x < 150
  37 + return 4
  38 + elseif a:x < 173
  39 + return 5
  40 + elseif a:x < 196
  41 + return 6
  42 + elseif a:x < 219
  43 + return 7
  44 + elseif a:x < 243
  45 + return 8
  46 + else
  47 + return 9
  48 + endif
  49 + else
  50 + if a:x < 14
  51 + return 0
  52 + else
  53 + let l:n = (a:x - 8) / 10
  54 + let l:m = (a:x - 8) % 10
  55 + if l:m < 5
  56 + return l:n
  57 + else
  58 + return l:n + 1
  59 + endif
  60 + endif
  61 + endif
  62 +endfun
  63 +
  64 +" returns the actual grey level represented by the grey index
  65 +fun <SID>grey_level(n)
  66 + if &t_Co == 88
  67 + if a:n == 0
  68 + return 0
  69 + elseif a:n == 1
  70 + return 46
  71 + elseif a:n == 2
  72 + return 92
  73 + elseif a:n == 3
  74 + return 115
  75 + elseif a:n == 4
  76 + return 139
  77 + elseif a:n == 5
  78 + return 162
  79 + elseif a:n == 6
  80 + return 185
  81 + elseif a:n == 7
  82 + return 208
  83 + elseif a:n == 8
  84 + return 231
  85 + else
  86 + return 255
  87 + endif
  88 + else
  89 + if a:n == 0
  90 + return 0
  91 + else
  92 + return 8 + (a:n * 10)
  93 + endif
  94 + endif
  95 +endfun
  96 +
  97 +" returns the palette index for the given grey index
  98 +fun <SID>grey_color(n)
  99 + if &t_Co == 88
  100 + if a:n == 0
  101 + return 16
  102 + elseif a:n == 9
  103 + return 79
  104 + else
  105 + return 79 + a:n
  106 + endif
  107 + else
  108 + if a:n == 0
  109 + return 16
  110 + elseif a:n == 25
  111 + return 231
  112 + else
  113 + return 231 + a:n
  114 + endif
  115 + endif
  116 +endfun
  117 +
  118 +" returns an approximate color index for the given color level
  119 +fun <SID>rgb_number(x)
  120 + if &t_Co == 88
  121 + if a:x < 69
  122 + return 0
  123 + elseif a:x < 172
  124 + return 1
  125 + elseif a:x < 230
  126 + return 2
  127 + else
  128 + return 3
  129 + endif
  130 + else
  131 + if a:x < 75
  132 + return 0
  133 + else
  134 + let l:n = (a:x - 55) / 40
  135 + let l:m = (a:x - 55) % 40
  136 + if l:m < 20
  137 + return l:n
  138 + else
  139 + return l:n + 1
  140 + endif
  141 + endif
  142 + endif
  143 +endfun
  144 +
  145 +" returns the actual color level for the given color index
  146 +fun <SID>rgb_level(n)
  147 + if &t_Co == 88
  148 + if a:n == 0
  149 + return 0
  150 + elseif a:n == 1
  151 + return 139
  152 + elseif a:n == 2
  153 + return 205
  154 + else
  155 + return 255
  156 + endif
  157 + else
  158 + if a:n == 0
  159 + return 0
  160 + else
  161 + return 55 + (a:n * 40)
  162 + endif
  163 + endif
  164 +endfun
  165 +
  166 +" returns the palette index for the given R/G/B color indices
  167 +fun <SID>rgb_color(x, y, z)
  168 + if &t_Co == 88
  169 + return 16 + (a:x * 16) + (a:y * 4) + a:z
  170 + else
  171 + return 16 + (a:x * 36) + (a:y * 6) + a:z
  172 + endif
  173 +endfun
  174 +
  175 +" returns the palette index to approximate the given R/G/B color levels
  176 +fun <SID>color(r, g, b)
  177 + " get the closest grey
  178 + let l:gx = <SID>grey_number(a:r)
  179 + let l:gy = <SID>grey_number(a:g)
  180 + let l:gz = <SID>grey_number(a:b)
  181 +
  182 + " get the closest color
  183 + let l:x = <SID>rgb_number(a:r)
  184 + let l:y = <SID>rgb_number(a:g)
  185 + let l:z = <SID>rgb_number(a:b)
  186 +
  187 + if l:gx == l:gy && l:gy == l:gz
  188 + " there are two possibilities
  189 + let l:dgr = <SID>grey_level(l:gx) - a:r
  190 + let l:dgg = <SID>grey_level(l:gy) - a:g
  191 + let l:dgb = <SID>grey_level(l:gz) - a:b
  192 + let l:dgrey = (l:dgr * l:dgr) + (l:dgg * l:dgg) + (l:dgb * l:dgb)
  193 + let l:dr = <SID>rgb_level(l:gx) - a:r
  194 + let l:dg = <SID>rgb_level(l:gy) - a:g
  195 + let l:db = <SID>rgb_level(l:gz) - a:b
  196 + let l:drgb = (l:dr * l:dr) + (l:dg * l:dg) + (l:db * l:db)
  197 + if l:dgrey < l:drgb
  198 + " use the grey
  199 + return <SID>grey_color(l:gx)
  200 + else
  201 + " use the color
  202 + return <SID>rgb_color(l:x, l:y, l:z)
  203 + endif
  204 + else
  205 + " only one possibility
  206 + return <SID>rgb_color(l:x, l:y, l:z)
  207 + endif
  208 +endfun
  209 +
  210 +" returns the palette index to approximate the 'rrggbb' hex string
  211 +fun <SID>rgb(rgb)
  212 + let l:r = ("0x" . strpart(a:rgb, 0, 2)) + 0
  213 + let l:g = ("0x" . strpart(a:rgb, 2, 2)) + 0
  214 + let l:b = ("0x" . strpart(a:rgb, 4, 2)) + 0
  215 + return <SID>color(l:r, l:g, l:b)
  216 +endfun
  217 +
  218 +" sets the highlighting for the given group
  219 +fun <SID>X(group, fg, bg, attr)
  220 + if a:fg != ""
  221 + exec "hi ".a:group." guifg=#".a:fg." ctermfg=".<SID>rgb(a:fg)
  222 + endif
  223 + if a:bg != ""
  224 + exec "hi ".a:group." guibg=#".a:bg." ctermbg=".<SID>rgb(a:bg)
  225 + endif
  226 + if a:attr != ""
  227 + if a:attr == 'italic'
  228 + exec "hi ".a:group." gui=".a:attr." cterm=none"
  229 + else
  230 + exec "hi ".a:group." gui=".a:attr." cterm=".a:attr
  231 + endif
  232 + endif
  233 +endfun
  234 +" }}}
  235 +
  236 +call <SID>X("Normal", "cccccc", "242424", "none")
  237 +call <SID>X("Cursor", "222222", "ecee90", "none")
  238 +call <SID>X("CursorLine", "", "32322e", "none")
  239 +call <SID>X("CursorColumn", "", "2d2d2d", "")
  240 + "CursorIM
  241 + "Question
  242 + "IncSearch
  243 +call <SID>X("Search", "444444", "af87d7", "")
  244 +call <SID>X("MatchParen", "ecee90", "857b6f", "bold")
  245 +call <SID>X("SpecialKey", "6c6c6c", "2d2d2d", "none")
  246 +call <SID>X("Visual", "ecee90", "597418", "none")
  247 +call <SID>X("LineNr", "857b6f", "121212", "none")
  248 +call <SID>X("Folded", "a0a8b0", "404048", "none")
  249 +call <SID>X("Title", "f6f3e8", "", "bold")
  250 +call <SID>X("VertSplit", "444444", "444444", "none")
  251 +call <SID>X("StatusLine", "f6f3e8", "444444", "italic")
  252 +call <SID>X("StatusLineNC", "857b6f", "444444", "none")
  253 + "Scrollbar
  254 + "Tooltip
  255 + "Menu
  256 + "WildMenu
  257 +call <SID>X("Pmenu", "f6f3e8", "444444", "")
  258 +call <SID>X("PmenuSel", "121212", "caeb82", "")
  259 +call <SID>X("WarningMsg", "ff0000", "", "")
  260 + "ErrorMsg
  261 + "ModeMsg
  262 + "MoreMsg
  263 + "Directory
  264 + "DiffAdd
  265 + "DiffChange
  266 + "DiffDelete
  267 + "DiffText
  268 +
  269 +" syntax highlighting
  270 +call <SID>X("Number", "e5786d", "", "none")
  271 +call <SID>X("Constant", "e5786d", "", "none")
  272 +call <SID>X("String", "95e454", "", "italic")
  273 +call <SID>X("Comment", "c0bc6c", "", "italic")
  274 +call <SID>X("Identifier", "caeb82", "", "none")
  275 +call <SID>X("Keyword", "87afff", "", "none")
  276 +call <SID>X("Statement", "87afff", "", "none")
  277 +call <SID>X("Function", "caeb82", "", "none")
  278 +call <SID>X("PreProc", "e5786d", "", "none")
  279 +call <SID>X("Type", "caeb82", "", "none")
  280 +call <SID>X("Special", "ffdead", "", "none")
  281 +call <SID>X("Todo", "857b6f", "", "italic")
  282 + "Underlined
  283 + "Error
  284 + "Ignore
  285 +
  286 +hi! link VisualNOS Visual
  287 +hi! link NonText LineNr
  288 +hi! link FoldColumn Folded
  289 +
  290 +" delete functions {{{
  291 +delf <SID>X
  292 +delf <SID>rgb
  293 +delf <SID>color
  294 +delf <SID>rgb_color
  295 +delf <SID>rgb_level
  296 +delf <SID>rgb_number
  297 +delf <SID>grey_color
  298 +delf <SID>grey_level
  299 +delf <SID>grey_number
  300 +" }}}
  301 +
  302 +" vim:set ts=4 sw=4 noet fdm=marker:

0 comments on commit 2b7724a

Please sign in to comment.
Something went wrong with that request. Please try again.