" This theme tries to detect your terminals capabilities (color-wise) and tries " to match gvim's "desert" look as much as possible - with some slight changes " Vim color file " The following section is commented since it schould be placed in .vimrc, IMHO " " detection criterias: You can use these to set t_Co manually in .vimrc " in case that you terminfo isn't adjusted correctly " COLORTERM=rxvt-xpm -> handle more than 8+8 colors " COLORTERM=rxvt-xpm && COLORFGBG -> rxvt-unicode -> 88 colors " COLORTERM=rxvt-xpm && !COLORFGBG -> mrxvt -> 256 colors " You can do that by adding the following lines to your .vimrc " if $COLORTERM =~ 'rxvt-xpm' && $COLORFGBG != "" " set t_Co=88 " elseif $COLORTERM =~ 'rxvt-xpm' " set t_Co=256 " else " " a fallback for mlterm and other terms " set t_Co=16 " " mlterm needs that " "set t_AB=^[[%?%p1%{8}%<%t25;%p1%{40}%+%e5;%p1%{32}%+%;%dm " "set t_AF=^[[%?%p1%{8}%<%t22;%p1%{30}%+%e1;%p1%{22}%+%;%dm " endif set background=dark hi clear if exists("syntax_on") syntax reset endif let g:colors_name = "tenum" " define theme for b/w terms only hi Comment term=bold hi Constant term=underline hi Special term=bold hi Identifier term=underline hi Statement term=bold hi PreProc term=underline hi Type term=underline hi Function term=bold hi Repeat term=underline hi Error term=reverse hi Todo term=standout " colorterm negotiation happens here " if &t_Co==88 hi Normal ctermfg=white ctermbg=NONE hi Comment ctermfg=12 hi Constant ctermfg=27 hi Special ctermfg=66 hi Identifier cterm=NONE ctermfg=45 hi Statement cterm=bold ctermfg=77 hi PreProc cterm=NONE ctermfg=32 hi Type cterm=bold ctermfg=57 hi Function ctermfg=41 hi Repeat cterm=bold ctermfg=77 hi Operator cterm=bold ctermfg=77 hi String ctermfg=69 hi SpecialKey ctermfg=81 hi Ignore ctermfg=black hi Error ctermbg=64 ctermfg=White hi Todo ctermbg=76 ctermfg=Black elseif &t_Co==256 hi Normal ctermfg=white ctermbg=NONE hi Comment ctermfg=44 hi Constant ctermfg=33 hi Special ctermfg=165 hi Identifier cterm=NONE ctermfg=46 hi Statement cterm=bold ctermfg=191 hi PreProc ctermfg=88 hi Type cterm=bold ctermfg=143 hi Function ctermfg=143 hi Repeat cterm=bold ctermfg=191 hi Operator cterm=bold ctermfg=191 hi String ctermfg=167 hi SpecialKey ctermfg=101 hi Ignore ctermfg=black hi Error ctermbg=196 ctermfg=White hi Todo ctermbg=226 ctermfg=Black endif " a gui theme " this is not a complete theme, shows the wrong colors and has errors " work in progress hi Normal guifg=cyan guibg=black hi Comment guifg=#80a0ff hi Constant guifg=Magenta hi Special guifg=Red hi Identifier guifg=#40ffff hi Statement gui=bold guifg=#aa4444 hi PreProc guifg=#ff80ff hi Type gui=bold guifg=#60ff60 hi Function guifg=White hi Repeat guifg=white hi Operator guifg=Red hi Ignore guifg=bg hi Error guifg=White guibg=Red hi Todo guifg=Blue guibg=Yellow " Common groups that link to default highlighting. " You can specify other highlighting easily. "hi link String Constant hi link Character Constant hi link Number Constant hi link Boolean Constant hi link Float Number hi link Conditional Repeat hi link Label Statement hi link Keyword Statement hi link Exception Statement hi link Include PreProc hi link Define PreProc hi link Macro PreProc hi link PreCondit PreProc hi link StorageClass Type hi link Structure Type hi link Typedef Type hi link Tag Special hi link SpecialChar Special hi link Delimiter Special hi link SpecialComment Special hi link Debug Special