Matt Johnson
hello world
New Vim Colorscheme
Posted Sat Nov 26 @ 01:10:31 PM PDT 2011
I've been using the default vim colorscheme every since I started using vim. It's not the best looking colorscheme, but it gets the job done, except for one thing. When you use the ctrl n command in insert mode, the little autocomplete popup appears. The problem is that with the default color scheme, it is hard to know which item is selected. See what I mean:
Since I use autocomplete a lot more now, I figured it was time for a change. People on stackoverflow recommended the Wombat scheme. I downloaded it, dropped it in my .vim/colors directory and tried to use it. Of course it didn't work. Turns out I needed the 256 color version of Wombat. Now it worked*. You can see some screenshots here.
I like it, but I made a few changes. First, I like a totally black background, not grey. And second, I like my error bar white text on red (so it stands out more).
I opened up the colorscheme file to make the changes, and was a little confused by the color codes. They go from 0-255, but there is no real pattern to them (as far as I could tell). 0 is black (makes sense), but white is 15. Go figure.
It was actually hard to find, but eventually I landed on a list of the 256 colors available in a terminal (and vim), with their byte codes, and hex codes.
The only changes had to make were:
Now I get a black background, and a really highlighted error bar:
* if the 256 version still doesn't work, make sure you add:
to your .vimrc file