This is a read-only archive!

Vim color scheme: Gentooish

I look at Vim 7 or 8 hours a day, so it's nice if the colors don't give me a headache. I've used ps_color for years but recently I decided it's a bit too washed-out and it has some quirks that make it hard to read Ruby code. It's hard to find anything else that's any better though. inkpot is good but it's a bit too monochrome for me. I like things to have a very distinct hue rather than rely on saturation or subtle differences.

So I started writing my own color scheme. For some reason that's beyond me, I seem to gravitate toward purple and green. Green is my favorite color, but why purple? I think it might be due to Gentoo brainwashing, so I called this color scheme Gentooish. I've been using it for a week or so and I keep changing things that annoy me, which will probably continue, but it's non-sucky enough to upload at this point probably.

Download gentooish.vim.

Gentooish

I've never written a color scheme before, but it's not difficult. inkpot had nice clean source code so I used that as a basis. ps_color's source is horrific.

Sadly I'm not 100% sure how vim color schemes map to colors in a terminal. Konsole, urxvt, xterm, and a real terminal all show me different colors when using the same color scheme. So I didn't bother with it.

May 10, 2008 @ 4:49 AM PDT
Cateogory: Programming
Tags: Themes, Vim

16 Comments

Dirk R. Gently
Quoth Dirk R. Gently on May 12, 2008 @ 5:37 AM PDT

Nice job. The green/purple colorscheme looks very nice - like the moonet. I use a somewhat modified version of lettuce which has a bit of likewise look.

http://linuxtidbits.files.wordpress.com/2008/03/vim-xclip.png http://linuxtidbits.files.wordpress.com/2008/02/my-terminal-gush.png

Chad
Quoth Chad on May 12, 2008 @ 8:39 PM PDT

It looks great! I'm a long time Emacs user (8 or 9 years) and just made the decision to start using Vim. I like the "smallness" of it and the fact that it's on every Unix and Linux box, pretty much by default. I still love Emacs but it is getting a little bloated and, usually, needs to be installed when I need to work from a computer that is not my own. Don't get me wrong, when I say that Emacs is bloated, I don't mean that in a bad way. Emacs is kind of a "one stop to do everything" editor. I'm really looking forward to my new journey into the Vim world. Can you recommend a good book as a tutorial?

Thanks.

Brian
Quoth Brian on May 13, 2008 @ 1:45 AM PDT

A book, hmmm. I don't know of any books. I think I used vimtutor when I first started learning. (If you're on *nix try vimtutor from a terminal, on Windows it'll be in the start menu, otherwise hunt for the vimtutor executable in the vim install dir). Your other source of info should be :h in vim. It's the best-written, most complete manual I've ever seen. Type :h searchterm and you can search the help with tab-completion.

Then there's the official vim scripts page which has been superseded recently by the official vim wiki. Lots of good stuff there.

Chad
Quoth Chad on May 13, 2008 @ 2:57 AM PDT

Thanks for the info. I'm running Linux (have been for 11 years). No MS Windows here! :)

Thanks!

anon
Quoth anon on May 13, 2008 @ 9:56 AM PDT

What KDE window theme are you using there?

Brian
Quoth Brian on May 13, 2008 @ 10:17 AM PDT

http://www.kde-look.org/content/show.php/The+K-style:+Infinity+[official]?content=35590

anon
Quoth anon on May 13, 2008 @ 10:44 AM PDT

Thanks a lot, this is amazing!

Do you know how to remove the the bar around the window when it's maximized, and change the size of the buttons on the title bar?

Brian
Quoth Brian on May 13, 2008 @ 11:53 AM PDT

In KControl => Window Decorations => DeKorator Help tab, it lists in detail how to create and edit themes. You can make the buttons bigger that way (they're simple .png files). Not sure how to remove the border for maximized windows, if that's even possible.

miker
Quoth miker on May 15, 2008 @ 2:41 AM PDT

Check out this theme. It's the best theme I've seen for vim so far. Especially with the Monaco font that is mentioned. Super sexy.

http://blog.infinitered.com/entries/show/8

Brian
Quoth Brian on May 15, 2008 @ 2:50 AM PDT

Looks pretty good, probably still a bit too unsaturated for my tastes though. I don't like the font either, but to each his/her own. :)

Alex
Quoth Alex on May 16, 2008 @ 1:36 AM PDT

Looks nice, you don't happen to have such a theme for emacs do you? ;)

Brian
Quoth Brian on May 16, 2008 @ 2:36 AM PDT

Fraid not. Writing an Emacs version, that's a scary thought isn't it. I use the dark-laptop theme for emacs personally.

Alex
Quoth Alex on May 16, 2008 @ 5:54 AM PDT

Now that's a pitty, i'd really like to give it a try on emacs. Who knows, if i get time and find the courage i might still give it a try and port it myself ;)

Jerry Freeline
Quoth Jerry Freeline on May 30, 2008 @ 9:21 AM PDT

"For some reason that's beyond me, I seem to gravitate toward purple and green"

That made me laugh, I have a kind of pink / fusia background on one of my SSH terminals which everyone always comments on... once upon a time, when all my terminals were black, I dropped a database on the wrong server... so now I suffer the worst color scheme ever in the hope that this sufferance will earn me divine protection from ever making such a catastrophic error again... and failing that ... at least I wont get it mixed up with the black one ;-)

Brian
Quoth Brian on March 23, 2010 @ 7:04 AM PDT

I like it. How about submitting it to http://www.vim.org/scripts/

Brian
Quoth Brian on March 23, 2010 @ 11:01 AM PDT

I submitted it when I first wrote it. http://www.vim.org/scripts/script.php?script_id=2474 It was downvoted into the negatives pretty quickly.