bgneal@0: " Vim color file --- psc (peak sea color) "Lite version" bgneal@0: " Maintainer: Pan, Shi Zhu bgneal@0: " URL: http://vim.sourceforge.net/scripts/script.php?script_id=760 bgneal@0: " Last Change: 5 Feb 2010 bgneal@0: " Version: 3.4 bgneal@0: " bgneal@0: " Comments and e-mails are welcomed, thanks. bgneal@0: " bgneal@0: " The peaksea color is simply a colorscheme with the default settings of bgneal@0: " the original ps_color. Lite version means there's no custom settings bgneal@0: " and fancy features such as integration with reloaded.vim bgneal@0: " bgneal@0: " The full version of ps_color.vim will be maintained until Vim 8. bgneal@0: " By then there will be only the lite version: peaksea.vim bgneal@0: " bgneal@0: " Note: Please set the background option in your .vimrc and/or .gvimrc bgneal@0: " bgneal@0: " It is much better *not* to set 'background' option inside bgneal@0: " a colorscheme file. because ":set background" improperly bgneal@0: " may cause colorscheme be sourced twice bgneal@0: " bgneal@0: " Color Scheme Overview: bgneal@0: " :ru syntax/hitest.vim bgneal@0: " bgneal@0: " Relevant Help: bgneal@0: " :h highlight-groups bgneal@0: " :h psc-cterm-color-table bgneal@0: " bgneal@0: " Colors Order: bgneal@0: " #rrggbb bgneal@0: " bgneal@0: bgneal@0: hi clear bgneal@0: bgneal@0: if exists("syntax_on") bgneal@0: syntax reset bgneal@0: endif bgneal@0: bgneal@0: let g:colors_name = expand(":t:r") bgneal@0: bgneal@0: " I don't want to abuse folding, but here folding is used to avoid confusion. bgneal@0: if &background=='light' bgneal@0: " for background=light {{{2 bgneal@0: " LIGHT COLOR DEFINE START bgneal@0: bgneal@0: hi Normal guifg=#000000 guibg=#e0e0e0 gui=NONE bgneal@0: hi Search guifg=NONE guibg=#f8f8f8 gui=NONE bgneal@0: hi Visual guifg=NONE guibg=#a6caf0 gui=NONE bgneal@0: hi Cursor guifg=#f0f0f0 guibg=#008000 gui=NONE bgneal@0: " The idea of CursorIM is pretty good, however, the feature is still buggy bgneal@0: " in the current version (Vim 7.0). bgneal@0: " The following line will be kept commented until the bug fixed. bgneal@0: " bgneal@0: " hi CursorIM guifg=#f0f0f0 guibg=#800080 bgneal@0: hi Special guifg=#907000 guibg=NONE gui=NONE bgneal@0: hi Comment guifg=#606000 guibg=NONE gui=NONE bgneal@0: hi Number guifg=#907000 guibg=NONE gui=NONE bgneal@0: hi Constant guifg=#007068 guibg=NONE gui=NONE bgneal@0: hi StatusLine guifg=fg guibg=#a6caf0 gui=NONE bgneal@0: hi LineNr guifg=#686868 guibg=NONE gui=NONE bgneal@0: hi Question guifg=fg guibg=#d0d090 gui=NONE bgneal@0: hi PreProc guifg=#009030 guibg=NONE gui=NONE bgneal@0: hi Statement guifg=#2060a8 guibg=NONE gui=NONE bgneal@0: hi Type guifg=#0850a0 guibg=NONE gui=NONE bgneal@0: hi Todo guifg=#800000 guibg=#e0e090 gui=NONE bgneal@0: " NOTE THIS IS IN THE WARM SECTION bgneal@0: hi Error guifg=#c03000 guibg=NONE gui=NONE bgneal@0: hi Identifier guifg=#a030a0 guibg=NONE gui=NONE bgneal@0: hi ModeMsg guifg=fg guibg=#b0b0e0 gui=NONE bgneal@0: hi VisualNOS guifg=fg guibg=#b0b0e0 gui=NONE bgneal@0: hi SpecialKey guifg=#1050a0 guibg=NONE gui=NONE bgneal@0: hi NonText guifg=#002090 guibg=#d0d0d0 gui=NONE bgneal@0: hi Directory guifg=#a030a0 guibg=NONE gui=NONE bgneal@0: hi ErrorMsg guifg=fg guibg=#f0b090 gui=NONE bgneal@0: hi MoreMsg guifg=#489000 guibg=NONE gui=NONE bgneal@0: hi Title guifg=#a030a0 guibg=NONE gui=NONE bgneal@0: hi WarningMsg guifg=#b02000 guibg=NONE gui=NONE bgneal@0: hi WildMenu guifg=fg guibg=#d0d090 gui=NONE bgneal@0: hi Folded guifg=NONE guibg=#b0e0b0 gui=NONE bgneal@0: hi FoldColumn guifg=fg guibg=#90e090 gui=NONE bgneal@0: hi DiffAdd guifg=NONE guibg=#b0b0e0 gui=NONE bgneal@0: hi DiffChange guifg=NONE guibg=#e0b0e0 gui=NONE bgneal@0: hi DiffDelete guifg=#002090 guibg=#d0d0d0 gui=NONE bgneal@0: hi DiffText guifg=NONE guibg=#c0e080 gui=NONE bgneal@0: hi SignColumn guifg=fg guibg=#90e090 gui=NONE bgneal@0: bgneal@0: hi IncSearch guifg=#f0f0f0 guibg=#806060 gui=NONE bgneal@0: hi StatusLineNC guifg=fg guibg=#c0c0c0 gui=NONE bgneal@0: hi VertSplit guifg=fg guibg=#c0c0c0 gui=NONE bgneal@0: hi Underlined guifg=#6a5acd guibg=NONE gui=underline bgneal@0: hi Ignore guifg=bg guibg=NONE bgneal@0: " NOTE THIS IS IN THE WARM SECTION bgneal@0: if v:version >= 700 bgneal@0: if has('spell') bgneal@0: hi SpellBad guifg=NONE guibg=NONE guisp=#c03000 bgneal@0: hi SpellCap guifg=NONE guibg=NONE guisp=#2060a8 bgneal@0: hi SpellRare guifg=NONE guibg=NONE guisp=#a030a0 bgneal@0: hi SpellLocal guifg=NONE guibg=NONE guisp=#007068 bgneal@0: endif bgneal@0: hi Pmenu guifg=fg guibg=#e0b0e0 bgneal@0: hi PmenuSel guifg=#f0f0f0 guibg=#806060 gui=NONE bgneal@0: hi PmenuSbar guifg=fg guibg=#c0c0c0 gui=NONE bgneal@0: hi PmenuThumb guifg=fg guibg=#c0e080 gui=NONE bgneal@0: hi TabLine guifg=fg guibg=#c0c0c0 gui=NONE bgneal@0: hi TabLineFill guifg=fg guibg=#c0c0c0 gui=NONE bgneal@0: hi TabLineSel guifg=fg guibg=NONE gui=NONE bgneal@0: hi CursorColumn guifg=NONE guibg=#f0b090 bgneal@0: hi CursorLine guifg=NONE guibg=NONE gui=underline bgneal@0: hi MatchParen guifg=NONE guibg=#c0e080 bgneal@0: endif bgneal@0: bgneal@0: " LIGHT COLOR DEFINE END bgneal@0: bgneal@0: " Vim 7 added stuffs bgneal@0: if v:version >= 700 bgneal@0: hi Ignore gui=NONE bgneal@0: bgneal@0: " the gui=undercurl guisp could only support in Vim 7 bgneal@0: if has('spell') bgneal@0: hi SpellBad gui=undercurl bgneal@0: hi SpellCap gui=undercurl bgneal@0: hi SpellRare gui=undercurl bgneal@0: hi SpellLocal gui=undercurl bgneal@0: endif bgneal@0: hi TabLine gui=underline bgneal@0: hi TabLineFill gui=underline bgneal@0: hi CursorLine gui=underline bgneal@0: endif bgneal@0: bgneal@0: " For reversed stuffs, clear the reversed prop and set the bold prop again bgneal@0: hi IncSearch gui=bold bgneal@0: hi StatusLine gui=bold bgneal@0: hi StatusLineNC gui=bold bgneal@0: hi VertSplit gui=bold bgneal@0: hi Visual gui=bold bgneal@0: bgneal@0: " Enable the bold property bgneal@0: hi Question gui=bold bgneal@0: hi DiffText gui=bold bgneal@0: hi Statement gui=bold bgneal@0: hi Type gui=bold bgneal@0: hi MoreMsg gui=bold bgneal@0: hi ModeMsg gui=bold bgneal@0: hi NonText gui=bold bgneal@0: hi Title gui=bold bgneal@0: hi DiffDelete gui=bold bgneal@0: hi TabLineSel gui=bold bgneal@0: bgneal@0: " gui define for background=light end here bgneal@0: bgneal@0: " generally, a dumb terminal is dark, we assume the light terminal has 256 bgneal@0: " color support. bgneal@0: if &t_Co==8 || &t_Co==16 bgneal@0: set t_Co=256 bgneal@0: endif bgneal@0: if &t_Co==256 bgneal@0: " 256color light terminal support here bgneal@0: bgneal@0: hi Normal ctermfg=16 ctermbg=254 cterm=NONE bgneal@0: " Comment/Uncomment the following line to disable/enable transparency bgneal@0: "hi Normal ctermfg=16 ctermbg=NONE cterm=NONE bgneal@0: hi Search ctermfg=NONE ctermbg=231 cterm=NONE bgneal@0: hi Visual ctermfg=NONE ctermbg=153 cterm=NONE bgneal@0: hi Cursor ctermfg=255 ctermbg=28 cterm=NONE bgneal@0: " hi CursorIM ctermfg=255 ctermbg=90 bgneal@0: hi Special ctermfg=94 ctermbg=NONE cterm=NONE bgneal@0: hi Comment ctermfg=58 ctermbg=NONE cterm=NONE bgneal@0: hi Number ctermfg=94 ctermbg=NONE cterm=NONE bgneal@0: hi Constant ctermfg=23 ctermbg=NONE cterm=NONE bgneal@0: hi StatusLine ctermfg=fg ctermbg=153 cterm=NONE bgneal@0: hi LineNr ctermfg=242 ctermbg=NONE cterm=NONE bgneal@0: hi Question ctermfg=fg ctermbg=186 cterm=NONE bgneal@0: hi PreProc ctermfg=29 ctermbg=NONE cterm=NONE bgneal@0: hi Statement ctermfg=25 ctermbg=NONE cterm=NONE bgneal@0: hi Type ctermfg=25 ctermbg=NONE cterm=NONE bgneal@0: hi Todo ctermfg=88 ctermbg=186 cterm=NONE bgneal@0: " NOTE THIS IS IN THE WARM SECTION bgneal@0: hi Error ctermfg=130 ctermbg=NONE cterm=NONE bgneal@0: hi Identifier ctermfg=133 ctermbg=NONE cterm=NONE bgneal@0: hi ModeMsg ctermfg=fg ctermbg=146 cterm=NONE bgneal@0: hi VisualNOS ctermfg=fg ctermbg=146 cterm=NONE bgneal@0: hi SpecialKey ctermfg=25 ctermbg=NONE cterm=NONE bgneal@0: hi NonText ctermfg=18 ctermbg=252 cterm=NONE bgneal@0: " Comment/Uncomment the following line to disable/enable transparency bgneal@0: "hi NonText ctermfg=18 ctermbg=NONE cterm=NONE bgneal@0: hi Directory ctermfg=133 ctermbg=NONE cterm=NONE bgneal@0: hi ErrorMsg ctermfg=fg ctermbg=216 cterm=NONE bgneal@0: hi MoreMsg ctermfg=64 ctermbg=NONE cterm=NONE bgneal@0: hi Title ctermfg=133 ctermbg=NONE cterm=NONE bgneal@0: hi WarningMsg ctermfg=124 ctermbg=NONE cterm=NONE bgneal@0: hi WildMenu ctermfg=fg ctermbg=186 cterm=NONE bgneal@0: hi Folded ctermfg=NONE ctermbg=151 cterm=NONE bgneal@0: hi FoldColumn ctermfg=fg ctermbg=114 cterm=NONE bgneal@0: hi DiffAdd ctermfg=NONE ctermbg=146 cterm=NONE bgneal@0: hi DiffChange ctermfg=NONE ctermbg=182 cterm=NONE bgneal@0: hi DiffDelete ctermfg=18 ctermbg=252 cterm=NONE bgneal@0: hi DiffText ctermfg=NONE ctermbg=150 cterm=NONE bgneal@0: hi SignColumn ctermfg=fg ctermbg=114 cterm=NONE bgneal@0: bgneal@0: hi IncSearch ctermfg=255 ctermbg=95 cterm=NONE bgneal@0: hi StatusLineNC ctermfg=fg ctermbg=250 cterm=NONE bgneal@0: hi VertSplit ctermfg=fg ctermbg=250 cterm=NONE bgneal@0: hi Underlined ctermfg=62 ctermbg=NONE cterm=underline bgneal@0: hi Ignore ctermfg=bg ctermbg=NONE bgneal@0: " NOTE THIS IS IN THE WARM SECTION bgneal@0: if v:version >= 700 bgneal@0: if has('spell') bgneal@0: if 0 bgneal@0: " ctermsp is not supported in Vim7, we ignore it. bgneal@0: hi SpellBad cterm=undercurl ctermbg=NONE ctermfg=130 bgneal@0: hi SpellCap cterm=undercurl ctermbg=NONE ctermfg=25 bgneal@0: hi SpellRare cterm=undercurl ctermbg=NONE ctermfg=133 bgneal@0: hi SpellLocal cterm=undercurl ctermbg=NONE ctermfg=23 bgneal@0: else bgneal@0: hi SpellBad cterm=undercurl ctermbg=NONE ctermfg=NONE bgneal@0: hi SpellCap cterm=undercurl ctermbg=NONE ctermfg=NONE bgneal@0: hi SpellRare cterm=undercurl ctermbg=NONE ctermfg=NONE bgneal@0: hi SpellLocal cterm=undercurl ctermbg=NONE ctermfg=NONE bgneal@0: endif bgneal@0: endif bgneal@0: hi Pmenu ctermfg=fg ctermbg=182 bgneal@0: hi PmenuSel ctermfg=255 ctermbg=95 cterm=NONE bgneal@0: hi PmenuSbar ctermfg=fg ctermbg=250 cterm=NONE bgneal@0: hi PmenuThumb ctermfg=fg ctermbg=150 cterm=NONE bgneal@0: hi TabLine ctermfg=fg ctermbg=250 cterm=NONE bgneal@0: hi TabLineFill ctermfg=fg ctermbg=250 cterm=NONE bgneal@0: hi TabLineSel ctermfg=fg ctermbg=NONE cterm=NONE bgneal@0: hi CursorColumn ctermfg=NONE ctermbg=216 bgneal@0: hi CursorLine ctermfg=NONE ctermbg=NONE cterm=underline bgneal@0: hi MatchParen ctermfg=NONE ctermbg=150 bgneal@0: endif bgneal@0: bgneal@0: hi TabLine cterm=underline bgneal@0: hi TabLineFill cterm=underline bgneal@0: hi CursorLine cterm=underline bgneal@0: bgneal@0: " For reversed stuffs, clear the reversed prop and set the bold prop again bgneal@0: hi IncSearch cterm=bold bgneal@0: hi StatusLine cterm=bold bgneal@0: hi StatusLineNC cterm=bold bgneal@0: hi VertSplit cterm=bold bgneal@0: hi Visual cterm=bold bgneal@0: bgneal@0: hi NonText cterm=bold bgneal@0: hi Question cterm=bold bgneal@0: hi Title cterm=bold bgneal@0: hi DiffDelete cterm=bold bgneal@0: hi DiffText cterm=bold bgneal@0: hi Statement cterm=bold bgneal@0: hi Type cterm=bold bgneal@0: hi MoreMsg cterm=bold bgneal@0: hi ModeMsg cterm=bold bgneal@0: hi TabLineSel cterm=bold bgneal@0: bgneal@0: "hi lCursor ctermfg=bg ctermbg=fg cterm=NONE bgneal@0: endif " t_Co==256 bgneal@0: " }}}2 bgneal@0: elseif &background=='dark' bgneal@0: " for background=dark {{{2 bgneal@0: " DARK COLOR DEFINE START bgneal@0: bgneal@0: hi Normal guifg=#d0d0d0 guibg=#202020 gui=NONE bgneal@0: hi Comment guifg=#d0d090 guibg=NONE gui=NONE bgneal@0: hi Constant guifg=#80c0e0 guibg=NONE gui=NONE bgneal@0: hi Number guifg=#e0c060 guibg=NONE gui=NONE bgneal@0: hi Identifier guifg=#f0c0f0 guibg=NONE gui=NONE bgneal@0: hi Statement guifg=#c0d8f8 guibg=NONE gui=NONE bgneal@0: hi PreProc guifg=#60f080 guibg=NONE gui=NONE bgneal@0: hi Type guifg=#b0d0f0 guibg=NONE gui=NONE bgneal@0: hi Special guifg=#e0c060 guibg=NONE gui=NONE bgneal@0: hi Error guifg=#f08060 guibg=NONE gui=NONE bgneal@0: hi Todo guifg=#800000 guibg=#d0d090 gui=NONE bgneal@0: hi Search guifg=NONE guibg=#800000 gui=NONE bgneal@0: hi Visual guifg=#000000 guibg=#a6caf0 gui=NONE bgneal@0: hi Cursor guifg=#000000 guibg=#00f000 gui=NONE bgneal@0: " NOTE THIS IS IN THE COOL SECTION bgneal@0: " hi CursorIM guifg=#000000 guibg=#f000f0 gui=NONE bgneal@0: hi StatusLine guifg=#000000 guibg=#a6caf0 gui=NONE bgneal@0: hi LineNr guifg=#b0b0b0 guibg=NONE gui=NONE bgneal@0: hi Question guifg=#000000 guibg=#d0d090 gui=NONE bgneal@0: hi ModeMsg guifg=fg guibg=#000080 gui=NONE bgneal@0: hi VisualNOS guifg=fg guibg=#000080 gui=NONE bgneal@0: hi SpecialKey guifg=#b0d0f0 guibg=NONE gui=NONE bgneal@0: hi NonText guifg=#6080f0 guibg=#101010 gui=NONE bgneal@0: hi Directory guifg=#80c0e0 guibg=NONE gui=NONE bgneal@0: hi ErrorMsg guifg=#d0d090 guibg=#800000 gui=NONE bgneal@0: hi MoreMsg guifg=#c0e080 guibg=NONE gui=NONE bgneal@0: hi Title guifg=#f0c0f0 guibg=NONE gui=NONE bgneal@0: hi WarningMsg guifg=#f08060 guibg=NONE gui=NONE bgneal@0: hi WildMenu guifg=#000000 guibg=#d0d090 gui=NONE bgneal@0: hi Folded guifg=NONE guibg=#004000 gui=NONE bgneal@0: hi FoldColumn guifg=#e0e0e0 guibg=#008000 gui=NONE bgneal@0: hi DiffAdd guifg=NONE guibg=#000080 gui=NONE bgneal@0: hi DiffChange guifg=NONE guibg=#800080 gui=NONE bgneal@0: hi DiffDelete guifg=#6080f0 guibg=#202020 gui=NONE bgneal@0: hi DiffText guifg=#000000 guibg=#c0e080 gui=NONE bgneal@0: hi SignColumn guifg=#e0e0e0 guibg=#008000 gui=NONE bgneal@0: hi IncSearch guifg=#000000 guibg=#d0d0d0 gui=NONE bgneal@0: hi StatusLineNC guifg=#000000 guibg=#c0c0c0 gui=NONE bgneal@0: hi VertSplit guifg=#000000 guibg=#c0c0c0 gui=NONE bgneal@0: hi Underlined guifg=#80a0ff guibg=NONE gui=underline bgneal@0: hi Ignore guifg=#000000 guibg=NONE bgneal@0: " NOTE THIS IS IN THE COOL SECTION bgneal@0: if v:version >= 700 bgneal@0: if has('spell') bgneal@0: " the guisp= could only support in Vim 7 bgneal@0: hi SpellBad guifg=NONE guibg=NONE guisp=#f08060 bgneal@0: hi SpellCap guifg=NONE guibg=NONE guisp=#6080f0 bgneal@0: hi SpellRare guifg=NONE guibg=NONE guisp=#f0c0f0 bgneal@0: hi SpellLocal guifg=NONE guibg=NONE guisp=#c0d8f8 bgneal@0: endif bgneal@0: hi Pmenu guifg=fg guibg=#800080 bgneal@0: hi PmenuSel guifg=#000000 guibg=#d0d0d0 gui=NONE bgneal@0: hi PmenuSbar guifg=fg guibg=#000080 gui=NONE bgneal@0: hi PmenuThumb guifg=fg guibg=#008000 gui=NONE bgneal@0: hi TabLine guifg=fg guibg=#008000 gui=NONE bgneal@0: hi TabLineFill guifg=fg guibg=#008000 gui=NONE bgneal@0: hi TabLineSel guifg=fg guibg=NONE gui=NONE bgneal@0: hi CursorColumn guifg=NONE guibg=#800000 gui=NONE bgneal@0: hi CursorLine guifg=NONE guibg=NONE gui=underline bgneal@0: hi MatchParen guifg=NONE guibg=#800080 bgneal@0: endif bgneal@0: bgneal@0: " DARK COLOR DEFINE END bgneal@0: bgneal@0: " Vim 7 added stuffs bgneal@0: if v:version >= 700 bgneal@0: hi Ignore gui=NONE bgneal@0: bgneal@0: " the gui=undercurl could only support in Vim 7 bgneal@0: if has('spell') bgneal@0: hi SpellBad gui=undercurl bgneal@0: hi SpellCap gui=undercurl bgneal@0: hi SpellRare gui=undercurl bgneal@0: hi SpellLocal gui=undercurl bgneal@0: endif bgneal@0: hi TabLine gui=underline bgneal@0: hi TabLineFill gui=underline bgneal@0: hi Underlined gui=underline bgneal@0: hi CursorLine gui=underline bgneal@0: endif bgneal@0: bgneal@0: " gui define for background=dark end here bgneal@0: bgneal@0: if &t_Co==8 || &t_Co==16 bgneal@0: " for 8-color and 16-color term bgneal@0: hi Normal ctermfg=LightGrey ctermbg=Black bgneal@0: hi Special ctermfg=Yellow ctermbg=bg bgneal@0: hi Comment ctermfg=DarkYellow ctermbg=bg bgneal@0: hi Constant ctermfg=Blue ctermbg=bg bgneal@0: hi Number ctermfg=Yellow ctermbg=bg bgneal@0: hi LineNr ctermfg=DarkGrey ctermbg=bg bgneal@0: hi PreProc ctermfg=Green ctermbg=bg bgneal@0: hi Statement ctermfg=Cyan ctermbg=bg bgneal@0: hi Type ctermfg=Cyan ctermbg=bg bgneal@0: hi Error ctermfg=Red ctermbg=bg bgneal@0: hi Identifier ctermfg=Magenta ctermbg=bg bgneal@0: hi SpecialKey ctermfg=Cyan ctermbg=bg bgneal@0: hi NonText ctermfg=Blue ctermbg=bg bgneal@0: hi Directory ctermfg=Blue ctermbg=bg bgneal@0: hi MoreMsg ctermfg=Green ctermbg=bg bgneal@0: hi Title ctermfg=Magenta ctermbg=bg bgneal@0: hi WarningMsg ctermfg=Red ctermbg=bg bgneal@0: hi DiffDelete ctermfg=Blue ctermbg=bg bgneal@0: bgneal@0: hi Search ctermfg=NONE ctermbg=DarkRed bgneal@0: hi Visual ctermfg=Black ctermbg=DarkCyan bgneal@0: hi Cursor ctermfg=Black ctermbg=Green bgneal@0: hi StatusLine ctermfg=Black ctermbg=DarkCyan bgneal@0: hi Question ctermfg=Black ctermbg=DarkYellow bgneal@0: hi Todo ctermfg=DarkRed ctermbg=DarkYellow bgneal@0: hi Folded ctermfg=White ctermbg=DarkGreen bgneal@0: hi ModeMsg ctermfg=Grey ctermbg=DarkBlue bgneal@0: hi VisualNOS ctermfg=Grey ctermbg=DarkBlue bgneal@0: hi ErrorMsg ctermfg=DarkYellow ctermbg=DarkRed bgneal@0: hi WildMenu ctermfg=Black ctermbg=DarkYellow bgneal@0: hi FoldColumn ctermfg=White ctermbg=DarkGreen bgneal@0: hi SignColumn ctermfg=White ctermbg=DarkGreen bgneal@0: hi DiffText ctermfg=Black ctermbg=DarkYellow bgneal@0: bgneal@0: if v:version >= 700 bgneal@0: if has('spell') bgneal@0: hi SpellBad ctermfg=NONE ctermbg=DarkRed bgneal@0: hi SpellCap ctermfg=NONE ctermbg=DarkBlue bgneal@0: hi SpellRare ctermfg=NONE ctermbg=DarkMagenta bgneal@0: hi SpellLocal ctermfg=NONE ctermbg=DarkGreen bgneal@0: endif bgneal@0: hi Pmenu ctermfg=fg ctermbg=DarkMagenta bgneal@0: hi PmenuSel ctermfg=Black ctermbg=fg bgneal@0: hi PmenuSbar ctermfg=fg ctermbg=DarkBlue bgneal@0: hi PmenuThumb ctermfg=fg ctermbg=DarkGreen bgneal@0: hi TabLine ctermfg=fg ctermbg=DarkGreen cterm=underline bgneal@0: hi TabLineFill ctermfg=fg ctermbg=DarkGreen cterm=underline bgneal@0: hi CursorColumn ctermfg=NONE ctermbg=DarkRed bgneal@0: bgneal@0: hi TabLineSel ctermfg=fg ctermbg=bg bgneal@0: hi CursorLine ctermfg=NONE ctermbg=bg cterm=underline bgneal@0: bgneal@0: hi MatchParen ctermfg=NONE ctermbg=DarkMagenta bgneal@0: endif bgneal@0: if &t_Co==8 bgneal@0: " 8 colour terminal support, this assumes 16 colour is available through bgneal@0: " setting the 'bold' attribute, will get bright foreground colour. bgneal@0: " However, the bright background color is not available for 8-color terms. bgneal@0: " bgneal@0: " You can manually set t_Co=16 in your .vimrc to see if your terminal bgneal@0: " supports 16 colours, bgneal@0: hi DiffText cterm=none bgneal@0: hi Visual cterm=none bgneal@0: hi Cursor cterm=none bgneal@0: hi Comment cterm=none bgneal@0: hi Todo cterm=none bgneal@0: hi StatusLine cterm=none bgneal@0: hi Question cterm=none bgneal@0: hi DiffChange cterm=none bgneal@0: hi ModeMsg cterm=none bgneal@0: hi VisualNOS cterm=none bgneal@0: hi ErrorMsg cterm=none bgneal@0: hi WildMenu cterm=none bgneal@0: hi DiffAdd cterm=none bgneal@0: hi Folded cterm=none bgneal@0: hi DiffDelete cterm=none bgneal@0: hi Normal cterm=none bgneal@0: hi PmenuThumb cterm=none bgneal@0: hi Search cterm=bold bgneal@0: hi Special cterm=bold bgneal@0: hi Constant cterm=bold bgneal@0: hi Number cterm=bold bgneal@0: hi LineNr cterm=bold bgneal@0: hi PreProc cterm=bold bgneal@0: hi Statement cterm=bold bgneal@0: hi Type cterm=bold bgneal@0: hi Error cterm=bold bgneal@0: hi Identifier cterm=bold bgneal@0: hi SpecialKey cterm=bold bgneal@0: hi NonText cterm=bold bgneal@0: hi MoreMsg cterm=bold bgneal@0: hi Title cterm=bold bgneal@0: hi WarningMsg cterm=bold bgneal@0: hi FoldColumn cterm=bold bgneal@0: hi SignColumn cterm=bold bgneal@0: hi Directory cterm=bold bgneal@0: hi DiffDelete cterm=bold bgneal@0: else bgneal@0: " Background > 7 is only available with 16 or more colors bgneal@0: bgneal@0: hi WarningMsg cterm=none bgneal@0: hi Search cterm=none bgneal@0: hi Visual cterm=none bgneal@0: hi Cursor cterm=none bgneal@0: hi Special cterm=none bgneal@0: hi Comment cterm=none bgneal@0: hi Constant cterm=none bgneal@0: hi Number cterm=none bgneal@0: hi LineNr cterm=none bgneal@0: hi PreProc cterm=none bgneal@0: hi Todo cterm=none bgneal@0: hi Error cterm=none bgneal@0: hi Identifier cterm=none bgneal@0: hi Folded cterm=none bgneal@0: hi SpecialKey cterm=none bgneal@0: hi Directory cterm=none bgneal@0: hi ErrorMsg cterm=none bgneal@0: hi Normal cterm=none bgneal@0: hi PmenuThumb cterm=none bgneal@0: hi WildMenu cterm=none bgneal@0: hi FoldColumn cterm=none bgneal@0: hi SignColumn cterm=none bgneal@0: hi DiffAdd cterm=none bgneal@0: hi DiffChange cterm=none bgneal@0: hi Question cterm=none bgneal@0: hi StatusLine cterm=none bgneal@0: hi DiffText cterm=none bgneal@0: hi IncSearch cterm=reverse bgneal@0: hi StatusLineNC cterm=reverse bgneal@0: hi VertSplit cterm=reverse bgneal@0: bgneal@0: " Well, well, bold font with color 0-7 is not possible. bgneal@0: " So, the Question, StatusLine, DiffText cannot act as expected. bgneal@0: bgneal@0: hi Statement cterm=none bgneal@0: hi Type cterm=none bgneal@0: hi MoreMsg cterm=none bgneal@0: hi ModeMsg cterm=none bgneal@0: hi NonText cterm=none bgneal@0: hi Title cterm=none bgneal@0: hi VisualNOS cterm=none bgneal@0: hi DiffDelete cterm=none bgneal@0: hi TabLineSel cterm=none bgneal@0: bgneal@0: endif bgneal@0: elseif &t_Co==256 bgneal@0: " 256color dark terminal support here bgneal@0: hi Normal ctermfg=252 ctermbg=234 cterm=NONE bgneal@0: " Comment/Uncomment the following line to disable/enable transparency bgneal@0: "hi Normal ctermfg=252 ctermbg=NONE cterm=NONE bgneal@0: hi Comment ctermfg=186 ctermbg=NONE cterm=NONE bgneal@0: hi Constant ctermfg=110 ctermbg=NONE cterm=NONE bgneal@0: hi Number ctermfg=179 ctermbg=NONE cterm=NONE bgneal@0: hi Identifier ctermfg=219 ctermbg=NONE cterm=NONE bgneal@0: hi Statement ctermfg=153 ctermbg=NONE cterm=NONE bgneal@0: hi PreProc ctermfg=84 ctermbg=NONE cterm=NONE bgneal@0: hi Type ctermfg=153 ctermbg=NONE cterm=NONE bgneal@0: hi Special ctermfg=179 ctermbg=NONE cterm=NONE bgneal@0: hi Error ctermfg=209 ctermbg=NONE cterm=NONE bgneal@0: hi Todo ctermfg=88 ctermbg=186 cterm=NONE bgneal@0: hi Search ctermfg=NONE ctermbg=88 cterm=NONE bgneal@0: hi Visual ctermfg=16 ctermbg=153 cterm=NONE bgneal@0: hi Cursor ctermfg=16 ctermbg=46 cterm=NONE bgneal@0: " NOTE THIS IS IN THE COOL SECTION bgneal@0: " hi CursorIM ctermfg=16 ctermbg=201 cterm=NONE bgneal@0: hi StatusLine ctermfg=16 ctermbg=153 cterm=NONE bgneal@0: hi LineNr ctermfg=249 ctermbg=NONE cterm=NONE bgneal@0: hi Question ctermfg=16 ctermbg=186 cterm=NONE bgneal@0: hi ModeMsg ctermfg=fg ctermbg=18 cterm=NONE bgneal@0: hi VisualNOS ctermfg=fg ctermbg=18 cterm=NONE bgneal@0: hi SpecialKey ctermfg=153 ctermbg=NONE cterm=NONE bgneal@0: hi NonText ctermfg=69 ctermbg=233 cterm=NONE bgneal@0: " Comment/Uncomment the following line to disable/enable transparency bgneal@0: "hi NonText ctermfg=69 ctermbg=NONE cterm=NONE bgneal@0: hi Directory ctermfg=110 ctermbg=NONE cterm=NONE bgneal@0: hi ErrorMsg ctermfg=186 ctermbg=88 cterm=NONE bgneal@0: hi MoreMsg ctermfg=150 ctermbg=NONE cterm=NONE bgneal@0: hi Title ctermfg=219 ctermbg=NONE cterm=NONE bgneal@0: hi WarningMsg ctermfg=209 ctermbg=NONE cterm=NONE bgneal@0: hi WildMenu ctermfg=16 ctermbg=186 cterm=NONE bgneal@0: hi Folded ctermfg=NONE ctermbg=22 cterm=NONE bgneal@0: hi FoldColumn ctermfg=254 ctermbg=28 cterm=NONE bgneal@0: hi DiffAdd ctermfg=NONE ctermbg=18 cterm=NONE bgneal@0: hi DiffChange ctermfg=NONE ctermbg=90 cterm=NONE bgneal@0: hi DiffDelete ctermfg=69 ctermbg=234 cterm=NONE bgneal@0: hi DiffText ctermfg=16 ctermbg=150 cterm=NONE bgneal@0: hi SignColumn ctermfg=254 ctermbg=28 cterm=NONE bgneal@0: hi IncSearch ctermfg=16 ctermbg=252 cterm=NONE bgneal@0: hi StatusLineNC ctermfg=16 ctermbg=250 cterm=NONE bgneal@0: hi VertSplit ctermfg=16 ctermbg=250 cterm=NONE bgneal@0: hi Underlined ctermfg=111 ctermbg=NONE cterm=underline bgneal@0: hi Ignore ctermfg=16 ctermbg=NONE bgneal@0: " NOTE THIS IS IN THE COOL SECTION bgneal@0: if v:version >= 700 bgneal@0: if has('spell') bgneal@0: " the ctermsp= is not supported in Vim 7 we simply ignored bgneal@0: if 0 bgneal@0: hi SpellBad cterm=undercurl ctermbg=NONE ctermfg=209 bgneal@0: hi SpellCap cterm=undercurl ctermbg=NONE ctermfg=69 bgneal@0: hi SpellRare cterm=undercurl ctermbg=NONE ctermfg=219 bgneal@0: hi SpellLocal cterm=undercurl ctermbg=NONE ctermfg=153 bgneal@0: else bgneal@0: hi SpellBad cterm=undercurl ctermbg=NONE ctermfg=NONE bgneal@0: hi SpellCap cterm=undercurl ctermbg=NONE ctermfg=NONE bgneal@0: hi SpellRare cterm=undercurl ctermbg=NONE ctermfg=NONE bgneal@0: hi SpellLocal cterm=undercurl ctermbg=NONE ctermfg=NONE bgneal@0: endif bgneal@0: endif bgneal@0: hi Pmenu ctermfg=fg ctermbg=90 bgneal@0: hi PmenuSel ctermfg=16 ctermbg=252 cterm=NONE bgneal@0: hi PmenuSbar ctermfg=fg ctermbg=18 cterm=NONE bgneal@0: hi PmenuThumb ctermfg=fg ctermbg=28 cterm=NONE bgneal@0: hi TabLine ctermfg=fg ctermbg=28 cterm=NONE bgneal@0: hi TabLineFill ctermfg=fg ctermbg=28 cterm=NONE bgneal@0: hi TabLineSel ctermfg=fg ctermbg=NONE cterm=NONE bgneal@0: hi CursorColumn ctermfg=NONE ctermbg=88 cterm=NONE bgneal@0: hi CursorLine ctermfg=NONE ctermbg=NONE cterm=underline bgneal@0: hi MatchParen ctermfg=NONE ctermbg=90 bgneal@0: hi TabLine cterm=underline bgneal@0: hi TabLineFill cterm=underline bgneal@0: hi Underlined cterm=underline bgneal@0: hi CursorLine cterm=underline bgneal@0: endif bgneal@0: bgneal@0: endif " t_Co bgneal@0: bgneal@0: " }}}2 bgneal@0: endif bgneal@0: bgneal@0: " Links: bgneal@0: " bgneal@0: " COLOR LINKS DEFINE START bgneal@0: bgneal@0: hi link String Constant bgneal@0: " Character must be different from strings because in many languages bgneal@0: " (especially C, C++) a 'char' variable is scalar while 'string' is pointer, bgneal@0: " mistaken a 'char' for a 'string' will cause disaster! bgneal@0: hi link Character Number bgneal@0: hi link SpecialChar LineNr bgneal@0: hi link Tag Identifier bgneal@0: hi link cCppOut LineNr bgneal@0: " The following are not standard hi links, bgneal@0: " these are used by DrChip bgneal@0: hi link Warning MoreMsg bgneal@0: hi link Notice Constant bgneal@0: " these are used by Calendar bgneal@0: hi link CalToday PreProc bgneal@0: " these are used by TagList bgneal@0: hi link MyTagListTagName IncSearch bgneal@0: hi link MyTagListTagScope Constant bgneal@0: bgneal@0: " COLOR LINKS DEFINE END bgneal@0: bgneal@0: " vim:et:nosta:sw=2:ts=8: bgneal@0: " vim600:fdm=marker:fdl=1: