Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

general & color settings

  • Loading branch information...
commit 2b7724ae9eb4802e5b9ddaa40556b7760f85b2cf 1 parent 0340df5
@vgod vgod authored
View
165 colors/moria.vim
@@ -0,0 +1,165 @@
+if exists("g:moria_style")
+ let s:moria_style = g:moria_style
+else
+ let s:moria_style = &background
+endif
+
+execute "command! -nargs=1 Colo let g:moria_style = \"<args>\" | colo moria"
+
+if s:moria_style == 'dark'
+ set background=dark
+elseif s:moria_style == 'light'
+ set background=light
+else
+ let s:moria_style = &background
+endif
+
+hi clear
+
+if exists("syntax_on")
+ syntax reset
+endif
+
+let colors_name = "moria"
+
+if s:moria_style == "dark"
+ hi Normal ctermbg=0 ctermfg=7 guibg=#202020 guifg=#d0d0d0 gui=none
+
+ hi Cursor guibg=#ffa500 guifg=bg gui=none
+ hi CursorColumn guibg=#444444 gui=none
+ hi CursorLine guibg=#444444 gui=none
+ hi DiffAdd guibg=#008b00 guifg=fg gui=none
+ hi DiffChange guibg=#00008b guifg=fg gui=none
+ hi DiffDelete guibg=#8b0000 guifg=fg gui=none
+ hi DiffText guibg=#0000cd guifg=fg gui=bold
+ hi Directory guibg=bg guifg=#1e90ff gui=none
+ hi ErrorMsg guibg=#ee2c2c guifg=#ffffff gui=bold
+ hi FoldColumn ctermbg=bg guibg=bg guifg=#a0b0c0 gui=none
+ hi Folded guibg=#585858 guifg=#c0d0e0 gui=none
+ hi IncSearch guibg=#e0cd78 guifg=#000000 gui=none
+ hi LineNr guifg=#a0b0c0 gui=none
+ hi ModeMsg guibg=bg guifg=fg gui=bold
+ hi MoreMsg guibg=bg guifg=#d0d097 gui=bold
+ hi NonText ctermfg=8 guibg=bg guifg=#a0b0c0 gui=bold
+ hi Pmenu guibg=#8090a0 guifg=#000000 gui=none
+ hi PmenuSbar guibg=#607080 guifg=fg gui=none
+ hi PmenuSel guibg=#e0e000 guifg=#000000 gui=none
+ hi PmenuThumb guibg=#c0d0e0 guifg=bg gui=none
+ hi Question guibg=bg guifg=#e0c07e gui=bold
+ hi Search guibg=#90e090 guifg=#000000 gui=none
+ hi SignColumn ctermbg=bg guibg=bg guifg=#a0a0a0 gui=none
+ hi SpecialKey guibg=bg guifg=#e0c07e gui=none
+ if has("spell")
+ hi SpellBad guisp=#ee2c2c gui=undercurl
+ hi SpellCap guisp=#2c2cee gui=undercurl
+ hi SpellLocal guisp=#2ceeee gui=undercurl
+ hi SpellRare guisp=#ee2cee gui=undercurl
+ endif
+ hi StatusLine ctermbg=7 ctermfg=0 guibg=#485868 guifg=fg gui=bold
+ hi StatusLineNC ctermbg=8 ctermfg=0 guibg=#304050 guifg=fg gui=none
+ hi TabLine guibg=#566676 guifg=fg gui=underline
+ hi TabLineFill guibg=#c0d0e0 guifg=bg gui=none
+ hi TabLineSel guibg=bg guifg=fg gui=bold
+ hi Title ctermbg=0 ctermfg=15 guifg=fg gui=bold
+ hi VertSplit ctermbg=7 ctermfg=0 guibg=#304050 guifg=fg gui=none
+ if version >= 700
+ hi Visual ctermbg=7 ctermfg=0 guibg=#607080 gui=none
+ else
+ hi Visual ctermbg=7 ctermfg=0 guibg=#607080 guifg=fg gui=none
+ endif
+ hi VisualNOS guibg=bg guifg=#90a0b0 gui=bold,underline
+ hi WarningMsg guibg=bg guifg=#ee2c2c gui=bold
+ hi WildMenu guibg=#e0e000 guifg=#000000 gui=bold
+
+ hi Comment guibg=bg guifg=#d0d0a0 gui=none
+ hi Constant guibg=bg guifg=#87df71 gui=none
+ hi Error guibg=bg guifg=#ee2c2c gui=none
+ hi Identifier guibg=bg guifg=#7ee0ce gui=none
+ hi Ignore guibg=bg guifg=bg gui=none
+ hi lCursor guibg=#00e700 guifg=#000000 gui=none
+ hi MatchParen guibg=#008b8b gui=none
+ hi PreProc guibg=bg guifg=#d7a0d7 gui=none
+ hi Special guibg=bg guifg=#e0c07e gui=none
+ hi Statement guibg=bg guifg=#7ec0ee gui=none
+ hi Todo guibg=#e0e000 guifg=#000000 gui=none
+ hi Type guibg=bg guifg=#f09479 gui=none
+ hi Underlined guibg=bg guifg=#00a0ff gui=underline
+
+ hi htmlBold ctermbg=0 ctermfg=15 guibg=bg guifg=fg gui=bold
+ hi htmlItalic ctermbg=0 ctermfg=15 guibg=bg guifg=fg gui=italic
+ hi htmlUnderline ctermbg=0 ctermfg=15 guibg=bg guifg=fg gui=underline
+ hi htmlBoldItalic ctermbg=0 ctermfg=15 guibg=bg guifg=fg gui=bold,italic
+ hi htmlBoldUnderline ctermbg=0 ctermfg=15 guibg=bg guifg=fg gui=bold,underline
+ hi htmlBoldUnderlineItalic ctermbg=0 ctermfg=15 guibg=bg guifg=fg gui=bold,underline,italic
+ hi htmlUnderlineItalic ctermbg=0 ctermfg=15 guibg=bg guifg=fg gui=underline,italic
+elseif s:moria_style == "light"
+ hi Normal ctermbg=15 ctermfg=0 guibg=#ffffff guifg=#000000 gui=none
+
+ hi Cursor guibg=#cd4e00 guifg=bg gui=none
+ hi CursorColumn guibg=#dbdbdb gui=none
+ hi CursorLine guibg=#dbdbdb gui=none
+ hi DiffAdd guibg=#008b00 guifg=#ffffff gui=none
+ hi DiffChange guibg=#00008b guifg=#ffffff gui=none
+ hi DiffDelete guibg=#8b0000 guifg=#ffffff gui=none
+ hi DiffText guibg=#0000cd guifg=#ffffff gui=bold
+ hi Directory guibg=bg guifg=#0000f0 gui=none
+ hi ErrorMsg guibg=#ee2c2c guifg=#ffffff gui=bold
+ hi FoldColumn ctermbg=bg guibg=bg guifg=#506070 gui=none
+ hi Folded guibg=#c8c8c8 guifg=fg gui=none
+ hi IncSearch guibg=#ffcd78 gui=none
+ hi LineNr guifg=#506070 gui=none
+ hi ModeMsg ctermbg=15 ctermfg=0 guibg=bg guifg=fg gui=bold
+ hi MoreMsg guibg=bg guifg=#1f3f81 gui=bold
+ hi NonText ctermfg=8 guibg=bg guifg=#506070 gui=bold
+ hi Pmenu guibg=#8a9aaa guifg=#000000 gui=none
+ hi PmenuSbar guibg=#708090 guifg=fg gui=none
+ hi PmenuSel guibg=#ffff00 guifg=#000000 gui=none
+ hi PmenuThumb guibg=#b0c0d0 guifg=fg gui=none
+ hi Question guibg=bg guifg=#813f11 gui=bold
+ hi Search guibg=#a0f0a0 gui=none
+ hi SignColumn ctermbg=bg guibg=bg guifg=#707070 gui=none
+ hi SpecialKey guibg=bg guifg=#912f11 gui=none
+ if has("spell")
+ hi SpellBad guisp=#ee2c2c gui=undercurl
+ hi SpellCap guisp=#2c2cee gui=undercurl
+ hi SpellLocal guisp=#008b8b gui=undercurl
+ hi SpellRare guisp=#ee2cee gui=undercurl
+ endif
+ hi StatusLine ctermbg=0 ctermfg=15 guibg=#a8b8c8 guifg=fg gui=bold
+ hi StatusLineNC ctermbg=7 ctermfg=0 guibg=#b8c8d8 guifg=fg gui=none
+ hi TabLine guibg=#b4c4d4 guifg=fg gui=underline
+ hi TabLineFill guibg=fg guifg=bg gui=none
+ hi TabLineSel guibg=bg guifg=fg gui=bold
+ hi Title guifg=fg gui=bold
+ hi VertSplit ctermbg=7 ctermfg=0 guibg=#b8c8d8 guifg=fg gui=none
+ if version >= 700
+ hi Visual ctermbg=7 ctermfg=0 guibg=#c8d8e8 gui=none
+ else
+ hi Visual ctermbg=7 ctermfg=0 guibg=#c8d8e8 guifg=fg gui=none
+ endif
+ hi VisualNOS guibg=bg guifg=#90a0b0 gui=bold,underline
+ hi WarningMsg guibg=bg guifg=#ee2c2c gui=bold
+ hi WildMenu guibg=#ffff00 guifg=fg gui=bold
+
+ hi Comment guibg=bg guifg=#786000 gui=none
+ hi Constant guibg=bg guifg=#077807 gui=none
+ hi Error guibg=bg guifg=#ee2c2c gui=none
+ hi Identifier guibg=bg guifg=#007080 gui=none
+ hi Ignore guibg=bg guifg=bg gui=none
+ hi lCursor guibg=#008000 guifg=#ffffff gui=none
+ hi MatchParen guibg=#00ffff gui=none
+ hi PreProc guibg=bg guifg=#800090 gui=none
+ hi Special guibg=bg guifg=#912f11 gui=none
+ hi Statement guibg=bg guifg=#1f3f81 gui=bold
+ hi Todo guibg=#ffff00 guifg=fg gui=none
+ hi Type guibg=bg guifg=#912f11 gui=bold
+ hi Underlined guibg=bg guifg=#0000cd gui=underline
+
+ hi htmlBold guibg=bg guifg=fg gui=bold
+ hi htmlItalic guibg=bg guifg=fg gui=italic
+ hi htmlUnderline guibg=bg guifg=fg gui=underline
+ hi htmlBoldItalic guibg=bg guifg=fg gui=bold,italic
+ hi htmlBoldUnderline guibg=bg guifg=fg gui=bold,underline
+ hi htmlBoldUnderlineItalic guibg=bg guifg=fg gui=bold,underline,italic
+ hi htmlUnderlineItalic guibg=bg guifg=fg gui=underline,italic
+endif
View
601 colors/peaksea.vim
@@ -0,0 +1,601 @@
+" Vim color file --- psc (peak sea color) "Lite version"
+" Maintainer: Pan, Shi Zhu <Go to the following URL for my email>
+" URL: http://vim.sourceforge.net/scripts/script.php?script_id=760
+" Last Change: 5 Feb 2010
+" Version: 3.4
+"
+" Comments and e-mails are welcomed, thanks.
+"
+" The peaksea color is simply a colorscheme with the default settings of
+" the original ps_color. Lite version means there's no custom settings
+" and fancy features such as integration with reloaded.vim
+"
+" The full version of ps_color.vim will be maintained until Vim 8.
+" By then there will be only the lite version: peaksea.vim
+"
+" Note: Please set the background option in your .vimrc and/or .gvimrc
+"
+" It is much better *not* to set 'background' option inside
+" a colorscheme file. because ":set background" improperly
+" may cause colorscheme be sourced twice
+"
+" Color Scheme Overview:
+" :ru syntax/hitest.vim
+"
+" Relevant Help:
+" :h highlight-groups
+" :h psc-cterm-color-table
+"
+" Colors Order:
+" #rrggbb
+"
+
+hi clear
+
+if exists("syntax_on")
+ syntax reset
+endif
+
+let g:colors_name = expand("<sfile>:t:r")
+
+" I don't want to abuse folding, but here folding is used to avoid confusion.
+if &background=='light'
+ " for background=light {{{2
+ " LIGHT COLOR DEFINE START
+
+ hi Normal guifg=#000000 guibg=#e0e0e0 gui=NONE
+ hi Search guifg=NONE guibg=#f8f8f8 gui=NONE
+ hi Visual guifg=NONE guibg=#a6caf0 gui=NONE
+ hi Cursor guifg=#f0f0f0 guibg=#008000 gui=NONE
+ " The idea of CursorIM is pretty good, however, the feature is still buggy
+ " in the current version (Vim 7.0).
+ " The following line will be kept commented until the bug fixed.
+ "
+ " hi CursorIM guifg=#f0f0f0 guibg=#800080
+ hi Special guifg=#907000 guibg=NONE gui=NONE
+ hi Comment guifg=#606000 guibg=NONE gui=NONE
+ hi Number guifg=#907000 guibg=NONE gui=NONE
+ hi Constant guifg=#007068 guibg=NONE gui=NONE
+ hi StatusLine guifg=fg guibg=#a6caf0 gui=NONE
+ hi LineNr guifg=#686868 guibg=NONE gui=NONE
+ hi Question guifg=fg guibg=#d0d090 gui=NONE
+ hi PreProc guifg=#009030 guibg=NONE gui=NONE
+ hi Statement guifg=#2060a8 guibg=NONE gui=NONE
+ hi Type guifg=#0850a0 guibg=NONE gui=NONE
+ hi Todo guifg=#800000 guibg=#e0e090 gui=NONE
+ " NOTE THIS IS IN THE WARM SECTION
+ hi Error guifg=#c03000 guibg=NONE gui=NONE
+ hi Identifier guifg=#a030a0 guibg=NONE gui=NONE
+ hi ModeMsg guifg=fg guibg=#b0b0e0 gui=NONE
+ hi VisualNOS guifg=fg guibg=#b0b0e0 gui=NONE
+ hi SpecialKey guifg=#1050a0 guibg=NONE gui=NONE
+ hi NonText guifg=#002090 guibg=#d0d0d0 gui=NONE
+ hi Directory guifg=#a030a0 guibg=NONE gui=NONE
+ hi ErrorMsg guifg=fg guibg=#f0b090 gui=NONE
+ hi MoreMsg guifg=#489000 guibg=NONE gui=NONE
+ hi Title guifg=#a030a0 guibg=NONE gui=NONE
+ hi WarningMsg guifg=#b02000 guibg=NONE gui=NONE
+ hi WildMenu guifg=fg guibg=#d0d090 gui=NONE
+ hi Folded guifg=NONE guibg=#b0e0b0 gui=NONE
+ hi FoldColumn guifg=fg guibg=#90e090 gui=NONE
+ hi DiffAdd guifg=NONE guibg=#b0b0e0 gui=NONE
+ hi DiffChange guifg=NONE guibg=#e0b0e0 gui=NONE
+ hi DiffDelete guifg=#002090 guibg=#d0d0d0 gui=NONE
+ hi DiffText guifg=NONE guibg=#c0e080 gui=NONE
+ hi SignColumn guifg=fg guibg=#90e090 gui=NONE
+
+ hi IncSearch guifg=#f0f0f0 guibg=#806060 gui=NONE
+ hi StatusLineNC guifg=fg guibg=#c0c0c0 gui=NONE
+ hi VertSplit guifg=fg guibg=#c0c0c0 gui=NONE
+ hi Underlined guifg=#6a5acd guibg=NONE gui=underline
+ hi Ignore guifg=bg guibg=NONE
+ " NOTE THIS IS IN THE WARM SECTION
+ if v:version >= 700
+ if has('spell')
+ hi SpellBad guifg=NONE guibg=NONE guisp=#c03000
+ hi SpellCap guifg=NONE guibg=NONE guisp=#2060a8
+ hi SpellRare guifg=NONE guibg=NONE guisp=#a030a0
+ hi SpellLocal guifg=NONE guibg=NONE guisp=#007068
+ endif
+ hi Pmenu guifg=fg guibg=#e0b0e0
+ hi PmenuSel guifg=#f0f0f0 guibg=#806060 gui=NONE
+ hi PmenuSbar guifg=fg guibg=#c0c0c0 gui=NONE
+ hi PmenuThumb guifg=fg guibg=#c0e080 gui=NONE
+ hi TabLine guifg=fg guibg=#c0c0c0 gui=NONE
+ hi TabLineFill guifg=fg guibg=#c0c0c0 gui=NONE
+ hi TabLineSel guifg=fg guibg=NONE gui=NONE
+ hi CursorColumn guifg=NONE guibg=#f0b090
+ hi CursorLine guifg=NONE guibg=NONE gui=underline
+ hi MatchParen guifg=NONE guibg=#c0e080
+ endif
+
+ " LIGHT COLOR DEFINE END
+
+ " Vim 7 added stuffs
+ if v:version >= 700
+ hi Ignore gui=NONE
+
+ " the gui=undercurl guisp could only support in Vim 7
+ if has('spell')
+ hi SpellBad gui=undercurl
+ hi SpellCap gui=undercurl
+ hi SpellRare gui=undercurl
+ hi SpellLocal gui=undercurl
+ endif
+ hi TabLine gui=underline
+ hi TabLineFill gui=underline
+ hi CursorLine gui=underline
+ endif
+
+ " For reversed stuffs, clear the reversed prop and set the bold prop again
+ hi IncSearch gui=bold
+ hi StatusLine gui=bold
+ hi StatusLineNC gui=bold
+ hi VertSplit gui=bold
+ hi Visual gui=bold
+
+ " Enable the bold property
+ hi Question gui=bold
+ hi DiffText gui=bold
+ hi Statement gui=bold
+ hi Type gui=bold
+ hi MoreMsg gui=bold
+ hi ModeMsg gui=bold
+ hi NonText gui=bold
+ hi Title gui=bold
+ hi DiffDelete gui=bold
+ hi TabLineSel gui=bold
+
+ " gui define for background=light end here
+
+ " generally, a dumb terminal is dark, we assume the light terminal has 256
+ " color support.
+ if &t_Co==8 || &t_Co==16
+ set t_Co=256
+ endif
+ if &t_Co==256
+ " 256color light terminal support here
+
+ hi Normal ctermfg=16 ctermbg=254 cterm=NONE
+ " Comment/Uncomment the following line to disable/enable transparency
+ "hi Normal ctermfg=16 ctermbg=NONE cterm=NONE
+ hi Search ctermfg=NONE ctermbg=231 cterm=NONE
+ hi Visual ctermfg=NONE ctermbg=153 cterm=NONE
+ hi Cursor ctermfg=255 ctermbg=28 cterm=NONE
+ " hi CursorIM ctermfg=255 ctermbg=90
+ hi Special ctermfg=94 ctermbg=NONE cterm=NONE
+ hi Comment ctermfg=58 ctermbg=NONE cterm=NONE
+ hi Number ctermfg=94 ctermbg=NONE cterm=NONE
+ hi Constant ctermfg=23 ctermbg=NONE cterm=NONE
+ hi StatusLine ctermfg=fg ctermbg=153 cterm=NONE
+ hi LineNr ctermfg=242 ctermbg=NONE cterm=NONE
+ hi Question ctermfg=fg ctermbg=186 cterm=NONE
+ hi PreProc ctermfg=29 ctermbg=NONE cterm=NONE
+ hi Statement ctermfg=25 ctermbg=NONE cterm=NONE
+ hi Type ctermfg=25 ctermbg=NONE cterm=NONE
+ hi Todo ctermfg=88 ctermbg=186 cterm=NONE
+ " NOTE THIS IS IN THE WARM SECTION
+ hi Error ctermfg=130 ctermbg=NONE cterm=NONE
+ hi Identifier ctermfg=133 ctermbg=NONE cterm=NONE
+ hi ModeMsg ctermfg=fg ctermbg=146 cterm=NONE
+ hi VisualNOS ctermfg=fg ctermbg=146 cterm=NONE
+ hi SpecialKey ctermfg=25 ctermbg=NONE cterm=NONE
+ hi NonText ctermfg=18 ctermbg=252 cterm=NONE
+ " Comment/Uncomment the following line to disable/enable transparency
+ "hi NonText ctermfg=18 ctermbg=NONE cterm=NONE
+ hi Directory ctermfg=133 ctermbg=NONE cterm=NONE
+ hi ErrorMsg ctermfg=fg ctermbg=216 cterm=NONE
+ hi MoreMsg ctermfg=64 ctermbg=NONE cterm=NONE
+ hi Title ctermfg=133 ctermbg=NONE cterm=NONE
+ hi WarningMsg ctermfg=124 ctermbg=NONE cterm=NONE
+ hi WildMenu ctermfg=fg ctermbg=186 cterm=NONE
+ hi Folded ctermfg=NONE ctermbg=151 cterm=NONE
+ hi FoldColumn ctermfg=fg ctermbg=114 cterm=NONE
+ hi DiffAdd ctermfg=NONE ctermbg=146 cterm=NONE
+ hi DiffChange ctermfg=NONE ctermbg=182 cterm=NONE
+ hi DiffDelete ctermfg=18 ctermbg=252 cterm=NONE
+ hi DiffText ctermfg=NONE ctermbg=150 cterm=NONE
+ hi SignColumn ctermfg=fg ctermbg=114 cterm=NONE
+
+ hi IncSearch ctermfg=255 ctermbg=95 cterm=NONE
+ hi StatusLineNC ctermfg=fg ctermbg=250 cterm=NONE
+ hi VertSplit ctermfg=fg ctermbg=250 cterm=NONE
+ hi Underlined ctermfg=62 ctermbg=NONE cterm=underline
+ hi Ignore ctermfg=bg ctermbg=NONE
+ " NOTE THIS IS IN THE WARM SECTION
+ if v:version >= 700
+ if has('spell')
+ if 0
+ " ctermsp is not supported in Vim7, we ignore it.
+ hi SpellBad cterm=undercurl ctermbg=NONE ctermfg=130
+ hi SpellCap cterm=undercurl ctermbg=NONE ctermfg=25
+ hi SpellRare cterm=undercurl ctermbg=NONE ctermfg=133
+ hi SpellLocal cterm=undercurl ctermbg=NONE ctermfg=23
+ else
+ hi SpellBad cterm=undercurl ctermbg=NONE ctermfg=NONE
+ hi SpellCap cterm=undercurl ctermbg=NONE ctermfg=NONE
+ hi SpellRare cterm=undercurl ctermbg=NONE ctermfg=NONE
+ hi SpellLocal cterm=undercurl ctermbg=NONE ctermfg=NONE
+ endif
+ endif
+ hi Pmenu ctermfg=fg ctermbg=182
+ hi PmenuSel ctermfg=255 ctermbg=95 cterm=NONE
+ hi PmenuSbar ctermfg=fg ctermbg=250 cterm=NONE
+ hi PmenuThumb ctermfg=fg ctermbg=150 cterm=NONE
+ hi TabLine ctermfg=fg ctermbg=250 cterm=NONE
+ hi TabLineFill ctermfg=fg ctermbg=250 cterm=NONE
+ hi TabLineSel ctermfg=fg ctermbg=NONE cterm=NONE
+ hi CursorColumn ctermfg=NONE ctermbg=216
+ hi CursorLine ctermfg=NONE ctermbg=NONE cterm=underline
+ hi MatchParen ctermfg=NONE ctermbg=150
+ endif
+
+ hi TabLine cterm=underline
+ hi TabLineFill cterm=underline
+ hi CursorLine cterm=underline
+
+ " For reversed stuffs, clear the reversed prop and set the bold prop again
+ hi IncSearch cterm=bold
+ hi StatusLine cterm=bold
+ hi StatusLineNC cterm=bold
+ hi VertSplit cterm=bold
+ hi Visual cterm=bold
+
+ hi NonText cterm=bold
+ hi Question cterm=bold
+ hi Title cterm=bold
+ hi DiffDelete cterm=bold
+ hi DiffText cterm=bold
+ hi Statement cterm=bold
+ hi Type cterm=bold
+ hi MoreMsg cterm=bold
+ hi ModeMsg cterm=bold
+ hi TabLineSel cterm=bold
+
+ "hi lCursor ctermfg=bg ctermbg=fg cterm=NONE
+ endif " t_Co==256
+ " }}}2
+elseif &background=='dark'
+ " for background=dark {{{2
+ " DARK COLOR DEFINE START
+
+ hi Normal guifg=#d0d0d0 guibg=#202020 gui=NONE
+ hi Comment guifg=#d0d090 guibg=NONE gui=NONE
+ hi Constant guifg=#80c0e0 guibg=NONE gui=NONE
+ hi Number guifg=#e0c060 guibg=NONE gui=NONE
+ hi Identifier guifg=#f0c0f0 guibg=NONE gui=NONE
+ hi Statement guifg=#c0d8f8 guibg=NONE gui=NONE
+ hi PreProc guifg=#60f080 guibg=NONE gui=NONE
+ hi Type guifg=#b0d0f0 guibg=NONE gui=NONE
+ hi Special guifg=#e0c060 guibg=NONE gui=NONE
+ hi Error guifg=#f08060 guibg=NONE gui=NONE
+ hi Todo guifg=#800000 guibg=#d0d090 gui=NONE
+ hi Search guifg=NONE guibg=#800000 gui=NONE
+ hi Visual guifg=#000000 guibg=#a6caf0 gui=NONE
+ hi Cursor guifg=#000000 guibg=#00f000 gui=NONE
+ " NOTE THIS IS IN THE COOL SECTION
+ " hi CursorIM guifg=#000000 guibg=#f000f0 gui=NONE
+ hi StatusLine guifg=#000000 guibg=#a6caf0 gui=NONE
+ hi LineNr guifg=#b0b0b0 guibg=NONE gui=NONE
+ hi Question guifg=#000000 guibg=#d0d090 gui=NONE
+ hi ModeMsg guifg=fg guibg=#000080 gui=NONE
+ hi VisualNOS guifg=fg guibg=#000080 gui=NONE
+ hi SpecialKey guifg=#b0d0f0 guibg=NONE gui=NONE
+ hi NonText guifg=#6080f0 guibg=#101010 gui=NONE
+ hi Directory guifg=#80c0e0 guibg=NONE gui=NONE
+ hi ErrorMsg guifg=#d0d090 guibg=#800000 gui=NONE
+ hi MoreMsg guifg=#c0e080 guibg=NONE gui=NONE
+ hi Title guifg=#f0c0f0 guibg=NONE gui=NONE
+ hi WarningMsg guifg=#f08060 guibg=NONE gui=NONE
+ hi WildMenu guifg=#000000 guibg=#d0d090 gui=NONE
+ hi Folded guifg=NONE guibg=#004000 gui=NONE
+ hi FoldColumn guifg=#e0e0e0 guibg=#008000 gui=NONE
+ hi DiffAdd guifg=NONE guibg=#000080 gui=NONE
+ hi DiffChange guifg=NONE guibg=#800080 gui=NONE
+ hi DiffDelete guifg=#6080f0 guibg=#202020 gui=NONE
+ hi DiffText guifg=#000000 guibg=#c0e080 gui=NONE
+ hi SignColumn guifg=#e0e0e0 guibg=#008000 gui=NONE
+ hi IncSearch guifg=#000000 guibg=#d0d0d0 gui=NONE
+ hi StatusLineNC guifg=#000000 guibg=#c0c0c0 gui=NONE
+ hi VertSplit guifg=#000000 guibg=#c0c0c0 gui=NONE
+ hi Underlined guifg=#80a0ff guibg=NONE gui=underline
+ hi Ignore guifg=#000000 guibg=NONE
+ " NOTE THIS IS IN THE COOL SECTION
+ if v:version >= 700
+ if has('spell')
+ " the guisp= could only support in Vim 7
+ hi SpellBad guifg=NONE guibg=NONE guisp=#f08060
+ hi SpellCap guifg=NONE guibg=NONE guisp=#6080f0
+ hi SpellRare guifg=NONE guibg=NONE guisp=#f0c0f0
+ hi SpellLocal guifg=NONE guibg=NONE guisp=#c0d8f8
+ endif
+ hi Pmenu guifg=fg guibg=#800080
+ hi PmenuSel guifg=#000000 guibg=#d0d0d0 gui=NONE
+ hi PmenuSbar guifg=fg guibg=#000080 gui=NONE
+ hi PmenuThumb guifg=fg guibg=#008000 gui=NONE
+ hi TabLine guifg=fg guibg=#008000 gui=NONE
+ hi TabLineFill guifg=fg guibg=#008000 gui=NONE
+ hi TabLineSel guifg=fg guibg=NONE gui=NONE
+ hi CursorColumn guifg=NONE guibg=#800000 gui=NONE
+ hi CursorLine guifg=NONE guibg=NONE gui=underline
+ hi MatchParen guifg=NONE guibg=#800080
+ endif
+
+ " DARK COLOR DEFINE END
+
+ " Vim 7 added stuffs
+ if v:version >= 700
+ hi Ignore gui=NONE
+
+ " the gui=undercurl could only support in Vim 7
+ if has('spell')
+ hi SpellBad gui=undercurl
+ hi SpellCap gui=undercurl
+ hi SpellRare gui=undercurl
+ hi SpellLocal gui=undercurl
+ endif
+ hi TabLine gui=underline
+ hi TabLineFill gui=underline
+ hi Underlined gui=underline
+ hi CursorLine gui=underline
+ endif
+
+ " gui define for background=dark end here
+
+ if &t_Co==8 || &t_Co==16
+ " for 8-color and 16-color term
+ hi Normal ctermfg=LightGrey ctermbg=Black
+ hi Special ctermfg=Yellow ctermbg=bg
+ hi Comment ctermfg=DarkYellow ctermbg=bg
+ hi Constant ctermfg=Blue ctermbg=bg
+ hi Number ctermfg=Yellow ctermbg=bg
+ hi LineNr ctermfg=DarkGrey ctermbg=bg
+ hi PreProc ctermfg=Green ctermbg=bg
+ hi Statement ctermfg=Cyan ctermbg=bg
+ hi Type ctermfg=Cyan ctermbg=bg
+ hi Error ctermfg=Red ctermbg=bg
+ hi Identifier ctermfg=Magenta ctermbg=bg
+ hi SpecialKey ctermfg=Cyan ctermbg=bg
+ hi NonText ctermfg=Blue ctermbg=bg
+ hi Directory ctermfg=Blue ctermbg=bg
+ hi MoreMsg ctermfg=Green ctermbg=bg
+ hi Title ctermfg=Magenta ctermbg=bg
+ hi WarningMsg ctermfg=Red ctermbg=bg
+ hi DiffDelete ctermfg=Blue ctermbg=bg
+
+ hi Search ctermfg=NONE ctermbg=DarkRed
+ hi Visual ctermfg=Black ctermbg=DarkCyan
+ hi Cursor ctermfg=Black ctermbg=Green
+ hi StatusLine ctermfg=Black ctermbg=DarkCyan
+ hi Question ctermfg=Black ctermbg=DarkYellow
+ hi Todo ctermfg=DarkRed ctermbg=DarkYellow
+ hi Folded ctermfg=White ctermbg=DarkGreen
+ hi ModeMsg ctermfg=Grey ctermbg=DarkBlue
+ hi VisualNOS ctermfg=Grey ctermbg=DarkBlue
+ hi ErrorMsg ctermfg=DarkYellow ctermbg=DarkRed
+ hi WildMenu ctermfg=Black ctermbg=DarkYellow
+ hi FoldColumn ctermfg=White ctermbg=DarkGreen
+ hi SignColumn ctermfg=White ctermbg=DarkGreen
+ hi DiffText ctermfg=Black ctermbg=DarkYellow
+
+ if v:version >= 700
+ if has('spell')
+ hi SpellBad ctermfg=NONE ctermbg=DarkRed
+ hi SpellCap ctermfg=NONE ctermbg=DarkBlue
+ hi SpellRare ctermfg=NONE ctermbg=DarkMagenta
+ hi SpellLocal ctermfg=NONE ctermbg=DarkGreen
+ endif
+ hi Pmenu ctermfg=fg ctermbg=DarkMagenta
+ hi PmenuSel ctermfg=Black ctermbg=fg
+ hi PmenuSbar ctermfg=fg ctermbg=DarkBlue
+ hi PmenuThumb ctermfg=fg ctermbg=DarkGreen
+ hi TabLine ctermfg=fg ctermbg=DarkGreen cterm=underline
+ hi TabLineFill ctermfg=fg ctermbg=DarkGreen cterm=underline
+ hi CursorColumn ctermfg=NONE ctermbg=DarkRed
+
+ hi TabLineSel ctermfg=fg ctermbg=bg
+ hi CursorLine ctermfg=NONE ctermbg=bg cterm=underline
+
+ hi MatchParen ctermfg=NONE ctermbg=DarkMagenta
+ endif
+ if &t_Co==8
+ " 8 colour terminal support, this assumes 16 colour is available through
+ " setting the 'bold' attribute, will get bright foreground colour.
+ " However, the bright background color is not available for 8-color terms.
+ "
+ " You can manually set t_Co=16 in your .vimrc to see if your terminal
+ " supports 16 colours,
+ hi DiffText cterm=none
+ hi Visual cterm=none
+ hi Cursor cterm=none
+ hi Comment cterm=none
+ hi Todo cterm=none
+ hi StatusLine cterm=none
+ hi Question cterm=none
+ hi DiffChange cterm=none
+ hi ModeMsg cterm=none
+ hi VisualNOS cterm=none
+ hi ErrorMsg cterm=none
+ hi WildMenu cterm=none
+ hi DiffAdd cterm=none
+ hi Folded cterm=none
+ hi DiffDelete cterm=none
+ hi Normal cterm=none
+ hi PmenuThumb cterm=none
+ hi Search cterm=bold
+ hi Special cterm=bold
+ hi Constant cterm=bold
+ hi Number cterm=bold
+ hi LineNr cterm=bold
+ hi PreProc cterm=bold
+ hi Statement cterm=bold
+ hi Type cterm=bold
+ hi Error cterm=bold
+ hi Identifier cterm=bold
+ hi SpecialKey cterm=bold
+ hi NonText cterm=bold
+ hi MoreMsg cterm=bold
+ hi Title cterm=bold
+ hi WarningMsg cterm=bold
+ hi FoldColumn cterm=bold
+ hi SignColumn cterm=bold
+ hi Directory cterm=bold
+ hi DiffDelete cterm=bold
+ else
+ " Background > 7 is only available with 16 or more colors
+
+ hi WarningMsg cterm=none
+ hi Search cterm=none
+ hi Visual cterm=none
+ hi Cursor cterm=none
+ hi Special cterm=none
+ hi Comment cterm=none
+ hi Constant cterm=none
+ hi Number cterm=none
+ hi LineNr cterm=none
+ hi PreProc cterm=none
+ hi Todo cterm=none
+ hi Error cterm=none
+ hi Identifier cterm=none
+ hi Folded cterm=none
+ hi SpecialKey cterm=none
+ hi Directory cterm=none
+ hi ErrorMsg cterm=none
+ hi Normal cterm=none
+ hi PmenuThumb cterm=none
+ hi WildMenu cterm=none
+ hi FoldColumn cterm=none
+ hi SignColumn cterm=none
+ hi DiffAdd cterm=none
+ hi DiffChange cterm=none
+ hi Question cterm=none
+ hi StatusLine cterm=none
+ hi DiffText cterm=none
+ hi IncSearch cterm=reverse
+ hi StatusLineNC cterm=reverse
+ hi VertSplit cterm=reverse
+
+ " Well, well, bold font with color 0-7 is not possible.
+ " So, the Question, StatusLine, DiffText cannot act as expected.
+
+ hi Statement cterm=none
+ hi Type cterm=none
+ hi MoreMsg cterm=none
+ hi ModeMsg cterm=none
+ hi NonText cterm=none
+ hi Title cterm=none
+ hi VisualNOS cterm=none
+ hi DiffDelete cterm=none
+ hi TabLineSel cterm=none
+
+ endif
+ elseif &t_Co==256
+ " 256color dark terminal support here
+ hi Normal ctermfg=252 ctermbg=234 cterm=NONE
+ " Comment/Uncomment the following line to disable/enable transparency
+ "hi Normal ctermfg=252 ctermbg=NONE cterm=NONE
+ hi Comment ctermfg=186 ctermbg=NONE cterm=NONE
+ hi Constant ctermfg=110 ctermbg=NONE cterm=NONE
+ hi Number ctermfg=179 ctermbg=NONE cterm=NONE
+ hi Identifier ctermfg=219 ctermbg=NONE cterm=NONE
+ hi Statement ctermfg=153 ctermbg=NONE cterm=NONE
+ hi PreProc ctermfg=84 ctermbg=NONE cterm=NONE
+ hi Type ctermfg=153 ctermbg=NONE cterm=NONE
+ hi Special ctermfg=179 ctermbg=NONE cterm=NONE
+ hi Error ctermfg=209 ctermbg=NONE cterm=NONE
+ hi Todo ctermfg=88 ctermbg=186 cterm=NONE
+ hi Search ctermfg=NONE ctermbg=88 cterm=NONE
+ hi Visual ctermfg=16 ctermbg=153 cterm=NONE
+ hi Cursor ctermfg=16 ctermbg=46 cterm=NONE
+ " NOTE THIS IS IN THE COOL SECTION
+ " hi CursorIM ctermfg=16 ctermbg=201 cterm=NONE
+ hi StatusLine ctermfg=16 ctermbg=153 cterm=NONE
+ hi LineNr ctermfg=249 ctermbg=NONE cterm=NONE
+ hi Question ctermfg=16 ctermbg=186 cterm=NONE
+ hi ModeMsg ctermfg=fg ctermbg=18 cterm=NONE
+ hi VisualNOS ctermfg=fg ctermbg=18 cterm=NONE
+ hi SpecialKey ctermfg=153 ctermbg=NONE cterm=NONE
+ hi NonText ctermfg=69 ctermbg=233 cterm=NONE
+ " Comment/Uncomment the following line to disable/enable transparency
+ "hi NonText ctermfg=69 ctermbg=NONE cterm=NONE
+ hi Directory ctermfg=110 ctermbg=NONE cterm=NONE
+ hi ErrorMsg ctermfg=186 ctermbg=88 cterm=NONE
+ hi MoreMsg ctermfg=150 ctermbg=NONE cterm=NONE
+ hi Title ctermfg=219 ctermbg=NONE cterm=NONE
+ hi WarningMsg ctermfg=209 ctermbg=NONE cterm=NONE
+ hi WildMenu ctermfg=16 ctermbg=186 cterm=NONE
+ hi Folded ctermfg=NONE ctermbg=22 cterm=NONE
+ hi FoldColumn ctermfg=254 ctermbg=28 cterm=NONE
+ hi DiffAdd ctermfg=NONE ctermbg=18 cterm=NONE
+ hi DiffChange ctermfg=NONE ctermbg=90 cterm=NONE
+ hi DiffDelete ctermfg=69 ctermbg=234 cterm=NONE
+ hi DiffText ctermfg=16 ctermbg=150 cterm=NONE
+ hi SignColumn ctermfg=254 ctermbg=28 cterm=NONE
+ hi IncSearch ctermfg=16 ctermbg=252 cterm=NONE
+ hi StatusLineNC ctermfg=16 ctermbg=250 cterm=NONE
+ hi VertSplit ctermfg=16 ctermbg=250 cterm=NONE
+ hi Underlined ctermfg=111 ctermbg=NONE cterm=underline
+ hi Ignore ctermfg=16 ctermbg=NONE
+ " NOTE THIS IS IN THE COOL SECTION
+ if v:version >= 700
+ if has('spell')
+ " the ctermsp= is not supported in Vim 7 we simply ignored
+ if 0
+ hi SpellBad cterm=undercurl ctermbg=NONE ctermfg=209
+ hi SpellCap cterm=undercurl ctermbg=NONE ctermfg=69
+ hi SpellRare cterm=undercurl ctermbg=NONE ctermfg=219
+ hi SpellLocal cterm=undercurl ctermbg=NONE ctermfg=153
+ else
+ hi SpellBad cterm=undercurl ctermbg=NONE ctermfg=NONE
+ hi SpellCap cterm=undercurl ctermbg=NONE ctermfg=NONE
+ hi SpellRare cterm=undercurl ctermbg=NONE ctermfg=NONE
+ hi SpellLocal cterm=undercurl ctermbg=NONE ctermfg=NONE
+ endif
+ endif
+ hi Pmenu ctermfg=fg ctermbg=90
+ hi PmenuSel ctermfg=16 ctermbg=252 cterm=NONE
+ hi PmenuSbar ctermfg=fg ctermbg=18 cterm=NONE
+ hi PmenuThumb ctermfg=fg ctermbg=28 cterm=NONE
+ hi TabLine ctermfg=fg ctermbg=28 cterm=NONE
+ hi TabLineFill ctermfg=fg ctermbg=28 cterm=NONE
+ hi TabLineSel ctermfg=fg ctermbg=NONE cterm=NONE
+ hi CursorColumn ctermfg=NONE ctermbg=88 cterm=NONE
+ hi CursorLine ctermfg=NONE ctermbg=NONE cterm=underline
+ hi MatchParen ctermfg=NONE ctermbg=90
+ hi TabLine cterm=underline
+ hi TabLineFill cterm=underline
+ hi Underlined cterm=underline
+ hi CursorLine cterm=underline
+ endif
+
+ endif " t_Co
+
+ " }}}2
+endif
+
+" Links:
+"
+" COLOR LINKS DEFINE START
+
+hi link String Constant
+" Character must be different from strings because in many languages
+" (especially C, C++) a 'char' variable is scalar while 'string' is pointer,
+" mistaken a 'char' for a 'string' will cause disaster!
+hi link Character Number
+hi link SpecialChar LineNr
+hi link Tag Identifier
+hi link cCppOut LineNr
+" The following are not standard hi links,
+" these are used by DrChip
+hi link Warning MoreMsg
+hi link Notice Constant
+" these are used by Calendar
+hi link CalToday PreProc
+" these are used by TagList
+hi link MyTagListTagName IncSearch
+hi link MyTagListTagScope Constant
+
+" COLOR LINKS DEFINE END
+
+" vim:et:nosta:sw=2:ts=8:
+" vim600:fdm=marker:fdl=1:
View
42 colors/vgod.vim
@@ -0,0 +1,42 @@
+" Color setting {
+ hi SignColumn ctermfg=White ctermbg=black
+ hi FoldColumn ctermfg=cyan ctermbg=black
+ hi Folded ctermfg=7 ctermbg=4
+ hi SpecialKey term=bold cterm=bold ctermfg=4
+ hi NonText term=bold cterm=bold ctermfg=4
+ hi Directory term=bold cterm=bold ctermfg=6
+ hi ErrorMsg term=standout cterm=bold ctermfg=7 ctermbg=1
+ hi IncSearch term=reverse cterm=reverse
+ hi Search term=reverse ctermfg=0 ctermbg=3
+ hi MoreMsg term=bold cterm=bold ctermfg=2
+ hi ModeMsg term=bold cterm=bold
+ hi LineNr term=underline cterm=bold ctermfg=3
+ hi Question term=standout cterm=bold ctermfg=2
+ hi StatusLine term=bold,reverse cterm=bold,reverse
+ hi StatusLineNC term=reverse cterm=reverse
+ hi Title term=bold cterm=bold ctermfg=5
+ hi Visual term=reverse cterm=reverse
+ hi VisualNOS term=bold,underline cterm=bold,underline
+ hi WarningMsg term=standout cterm=bold ctermfg=1
+ hi WildMenu term=standout ctermfg=0 ctermbg=3
+ hi Comment term=bold cterm=bold ctermfg=6
+ hi Constant term=underline cterm=bold ctermfg=5
+ hi Special term=bold cterm=bold ctermfg=1
+ hi Identifier term=underline cterm=bold ctermfg=6
+ hi Statement term=bold cterm=bold ctermfg=3
+ hi PreProc term=underline cterm=bold ctermfg=4
+ hi Type term=underline cterm=bold ctermfg=2
+ hi Ignore ctermfg=0
+ hi Error term=reverse cterm=bold ctermfg=7 ctermbg=1
+ hi Todo term=standout ctermfg=0 ctermbg=3
+
+ hi TabLine guibg=#566676 guifg=fg gui=underline ctermbg=7
+ hi TabLineFill guibg=#c0d0e0 guifg=bg gui=none
+ hi TabLineSel guibg=bg guifg=fg gui=bold ctermbg=1
+ hi Cursor guibg=#cd4e00 guifg=bg gui=none ctermbg=3
+ hi CursorColumn guibg=#dbdbdb gui=none ctermbg=yellow
+ hi CursorLine guibg=#dbdbdb gui=none
+ "highlight Pmenu ctermfg=1 ctermbg=4 guibg=grey30
+ hi PmenuSel ctermfg=1 ctermbg=7 guibg=grey30
+"}
+
View
302 colors/wombat256.vim
@@ -0,0 +1,302 @@
+" Vim color file
+" Maintainer: David Liang (bmdavll at gmail dot com)
+" Last Change: November 28 2008
+"
+" wombat256.vim - a modified version of Wombat by Lars Nielsen that also
+" works on xterms with 88 or 256 colors. The algorithm for approximating the
+" GUI colors with the xterm palette is from desert256.vim by Henry So Jr.
+
+set background=dark
+
+if version > 580
+ hi clear
+ if exists("syntax_on")
+ syntax reset
+ endif
+endif
+
+let g:colors_name = "wombat256"
+
+if !has("gui_running") && &t_Co != 88 && &t_Co != 256
+ finish
+endif
+
+" functions {{{
+" returns an approximate grey index for the given grey level
+fun <SID>grey_number(x)
+ if &t_Co == 88
+ if a:x < 23
+ return 0
+ elseif a:x < 69
+ return 1
+ elseif a:x < 103
+ return 2
+ elseif a:x < 127
+ return 3
+ elseif a:x < 150
+ return 4
+ elseif a:x < 173
+ return 5
+ elseif a:x < 196
+ return 6
+ elseif a:x < 219
+ return 7
+ elseif a:x < 243
+ return 8
+ else
+ return 9
+ endif
+ else
+ if a:x < 14
+ return 0
+ else
+ let l:n = (a:x - 8) / 10
+ let l:m = (a:x - 8) % 10
+ if l:m < 5
+ return l:n
+ else
+ return l:n + 1
+ endif
+ endif
+ endif
+endfun
+
+" returns the actual grey level represented by the grey index
+fun <SID>grey_level(n)
+ if &t_Co == 88
+ if a:n == 0
+ return 0
+ elseif a:n == 1
+ return 46
+ elseif a:n == 2
+ return 92
+ elseif a:n == 3
+ return 115
+ elseif a:n == 4
+ return 139
+ elseif a:n == 5
+ return 162
+ elseif a:n == 6
+ return 185
+ elseif a:n == 7
+ return 208
+ elseif a:n == 8
+ return 231
+ else
+ return 255
+ endif
+ else
+ if a:n == 0
+ return 0
+ else
+ return 8 + (a:n * 10)
+ endif
+ endif
+endfun
+
+" returns the palette index for the given grey index
+fun <SID>grey_color(n)
+ if &t_Co == 88
+ if a:n == 0
+ return 16
+ elseif a:n == 9
+ return 79
+ else
+ return 79 + a:n
+ endif
+ else
+ if a:n == 0
+ return 16
+ elseif a:n == 25
+ return 231
+ else
+ return 231 + a:n
+ endif
+ endif
+endfun
+
+" returns an approximate color index for the given color level
+fun <SID>rgb_number(x)
+ if &t_Co == 88
+ if a:x < 69
+ return 0
+ elseif a:x < 172
+ return 1
+ elseif a:x < 230
+ return 2
+ else
+ return 3
+ endif
+ else
+ if a:x < 75
+ return 0
+ else
+ let l:n = (a:x - 55) / 40
+ let l:m = (a:x - 55) % 40
+ if l:m < 20
+ return l:n
+ else
+ return l:n + 1
+ endif
+ endif
+ endif
+endfun
+
+" returns the actual color level for the given color index
+fun <SID>rgb_level(n)
+ if &t_Co == 88
+ if a:n == 0
+ return 0
+ elseif a:n == 1
+ return 139
+ elseif a:n == 2
+ return 205
+ else
+ return 255
+ endif
+ else
+ if a:n == 0
+ return 0
+ else
+ return 55 + (a:n * 40)
+ endif
+ endif
+endfun
+
+" returns the palette index for the given R/G/B color indices
+fun <SID>rgb_color(x, y, z)
+ if &t_Co == 88
+ return 16 + (a:x * 16) + (a:y * 4) + a:z
+ else
+ return 16 + (a:x * 36) + (a:y * 6) + a:z
+ endif
+endfun
+
+" returns the palette index to approximate the given R/G/B color levels
+fun <SID>color(r, g, b)
+ " get the closest grey
+ let l:gx = <SID>grey_number(a:r)
+ let l:gy = <SID>grey_number(a:g)
+ let l:gz = <SID>grey_number(a:b)
+
+ " get the closest color
+ let l:x = <SID>rgb_number(a:r)
+ let l:y = <SID>rgb_number(a:g)
+ let l:z = <SID>rgb_number(a:b)
+
+ if l:gx == l:gy && l:gy == l:gz
+ " there are two possibilities
+ let l:dgr = <SID>grey_level(l:gx) - a:r
+ let l:dgg = <SID>grey_level(l:gy) - a:g
+ let l:dgb = <SID>grey_level(l:gz) - a:b
+ let l:dgrey = (l:dgr * l:dgr) + (l:dgg * l:dgg) + (l:dgb * l:dgb)
+ let l:dr = <SID>rgb_level(l:gx) - a:r
+ let l:dg = <SID>rgb_level(l:gy) - a:g
+ let l:db = <SID>rgb_level(l:gz) - a:b
+ let l:drgb = (l:dr * l:dr) + (l:dg * l:dg) + (l:db * l:db)
+ if l:dgrey < l:drgb
+ " use the grey
+ return <SID>grey_color(l:gx)
+ else
+ " use the color
+ return <SID>rgb_color(l:x, l:y, l:z)
+ endif
+ else
+ " only one possibility
+ return <SID>rgb_color(l:x, l:y, l:z)
+ endif
+endfun
+
+" returns the palette index to approximate the 'rrggbb' hex string
+fun <SID>rgb(rgb)
+ let l:r = ("0x" . strpart(a:rgb, 0, 2)) + 0
+ let l:g = ("0x" . strpart(a:rgb, 2, 2)) + 0
+ let l:b = ("0x" . strpart(a:rgb, 4, 2)) + 0
+ return <SID>color(l:r, l:g, l:b)
+endfun
+
+" sets the highlighting for the given group
+fun <SID>X(group, fg, bg, attr)
+ if a:fg != ""
+ exec "hi ".a:group." guifg=#".a:fg." ctermfg=".<SID>rgb(a:fg)
+ endif
+ if a:bg != ""
+ exec "hi ".a:group." guibg=#".a:bg." ctermbg=".<SID>rgb(a:bg)
+ endif
+ if a:attr != ""
+ if a:attr == 'italic'
+ exec "hi ".a:group." gui=".a:attr." cterm=none"
+ else
+ exec "hi ".a:group." gui=".a:attr." cterm=".a:attr
+ endif
+ endif
+endfun
+" }}}
+
+call <SID>X("Normal", "cccccc", "242424", "none")
+call <SID>X("Cursor", "222222", "ecee90", "none")
+call <SID>X("CursorLine", "", "32322e", "none")
+call <SID>X("CursorColumn", "", "2d2d2d", "")
+ "CursorIM
+ "Question
+ "IncSearch
+call <SID>X("Search", "444444", "af87d7", "")
+call <SID>X("MatchParen", "ecee90", "857b6f", "bold")
+call <SID>X("SpecialKey", "6c6c6c", "2d2d2d", "none")
+call <SID>X("Visual", "ecee90", "597418", "none")
+call <SID>X("LineNr", "857b6f", "121212", "none")
+call <SID>X("Folded", "a0a8b0", "404048", "none")
+call <SID>X("Title", "f6f3e8", "", "bold")
+call <SID>X("VertSplit", "444444", "444444", "none")
+call <SID>X("StatusLine", "f6f3e8", "444444", "italic")
+call <SID>X("StatusLineNC", "857b6f", "444444", "none")
+ "Scrollbar
+ "Tooltip
+ "Menu
+ "WildMenu
+call <SID>X("Pmenu", "f6f3e8", "444444", "")
+call <SID>X("PmenuSel", "121212", "caeb82", "")
+call <SID>X("WarningMsg", "ff0000", "", "")
+ "ErrorMsg
+ "ModeMsg
+ "MoreMsg
+ "Directory
+ "DiffAdd
+ "DiffChange
+ "DiffDelete
+ "DiffText
+
+" syntax highlighting
+call <SID>X("Number", "e5786d", "", "none")
+call <SID>X("Constant", "e5786d", "", "none")
+call <SID>X("String", "95e454", "", "italic")
+call <SID>X("Comment", "c0bc6c", "", "italic")
+call <SID>X("Identifier", "caeb82", "", "none")
+call <SID>X("Keyword", "87afff", "", "none")
+call <SID>X("Statement", "87afff", "", "none")
+call <SID>X("Function", "caeb82", "", "none")
+call <SID>X("PreProc", "e5786d", "", "none")
+call <SID>X("Type", "caeb82", "", "none")
+call <SID>X("Special", "ffdead", "", "none")
+call <SID>X("Todo", "857b6f", "", "italic")
+ "Underlined
+ "Error
+ "Ignore
+
+hi! link VisualNOS Visual
+hi! link NonText LineNr
+hi! link FoldColumn Folded
+
+" delete functions {{{
+delf <SID>X
+delf <SID>rgb
+delf <SID>color
+delf <SID>rgb_color
+delf <SID>rgb_level
+delf <SID>rgb_number
+delf <SID>grey_color
+delf <SID>grey_level
+delf <SID>grey_number
+" }}}
+
+" vim:set ts=4 sw=4 noet fdm=marker:
Please sign in to comment.
Something went wrong with that request. Please try again.