I found this nice GVIM color scheme from Lars H. Nielsen called “wombat”. I wanted to use this also in normal vim, because I prefer working on the console over the graphical vim. For that I needed to convert the scheme to work in 256 color mode of xterm or KDE’s konsole. I found this site very useful to understand why and how to convert the color schemes.
Here is a screenshot and the scheme “wombat256”. To include it store the wombat256 scheme in ~/.vim/colors and add this lines into your .vimrc.
" turn syntax highlighting on set t_Co=256 syntax on colorscheme wombat256
Wombat256:
1 " Author: Gerhard Gappmeier <gerhard.gappmeier@ascolab.com>
2 " Description: 256C Scheme for console based VIM
3 " Based in wombat GVIM scheme from Lars H. Nielsen (dengmao@gmail.com)
4 " Last Change: 2009-06-01
5
6 set background=dark
7
8 hi clear
9
10 if exists("syntax_on")
11 syntax reset
12 endif
13
14 let colors_name = "wombat256"
15
16 " Vim >= 7.0 specific colors
17 if version >= 700
18 hi CursorLine ctermbg=236
19 hi CursorColumn ctermbg=236
20 hi MatchParen ctermfg=7 ctermbg=243 cterm=bold
21 hi Pmenu ctermfg=7 ctermbg=238
22 hi PmenuSel ctermfg=0 ctermbg=186
23 endif
24
25 " General colors
26 hi Cursor ctermfg=0 ctermbg=241 cterm=none
27 hi Normal ctermfg=7 ctermbg=235 cterm=none
28 hi NonText ctermfg=244 ctermbg=236 cterm=none
29 hi LineNr ctermfg=243 ctermbg=0 cterm=none
30 hi StatusLine ctermfg=7 ctermbg=238 cterm=none
31 hi StatusLineNC ctermfg=243 ctermbg=238 cterm=none
32 hi VertSplit ctermfg=238 ctermbg=238 cterm=none
33 hi Folded ctermbg=238 ctermfg=248 cterm=none
34 hi Title ctermfg=7 ctermbg=0 cterm=bold
35 hi Visual ctermfg=7 ctermbg=238 cterm=none
36 hi SpecialKey ctermfg=244 ctermbg=236 cterm=none
37 hi DiffAdd ctermfg=0 ctermbg=113 cterm=none
38 hi DiffChange ctermfg=0 ctermbg=175 cterm=none
39 hi DiffDelete ctermfg=0 ctermbg=17 cterm=none
40 hi SpellBad ctermfg=0 ctermbg=161 cterm=none
41
42 " Syntax highlighting
43 hi Comment ctermfg=246 ctermbg=235
44 hi Todo ctermfg=245 cterm=italic
45 hi Constant ctermfg=173 cterm=none
46 hi String ctermfg=113 cterm=none
47 hi Identifier ctermfg=186 cterm=none
48 hi Function ctermfg=186 cterm=none
49 hi Type ctermfg=186 cterm=none
50 hi Statement ctermfg=117 cterm=none
51 hi Keyword ctermfg=117 cterm=none
52 hi PreProc ctermfg=173 cterm=none
53 hi Number ctermfg=173 cterm=none
54 hi Special ctermfg=194 cterm=none
55
56
Very thanks! I use this theme.
is there a download link for it somewhere on this page?
You are actually my hero. This is the first decent color scheme I found for vim which does diffs and completion menus well, but is still not too low or high contrast to sit in front of all night 🙂
I’m glad that you like it. I’m still using it every day 😉
Hey,
Awesome work on converting this theme to 256. Its awesome!