Do everything with javascript

vim wombat colorscheme on Mac iTerm

The wombat colorscheme is so far the best scheme I found. It is from Lars H. Nielsen http://dengmao.wordpress.com/2007/01/22/vim-color-scheme-wombat/


Both image directly link from Lars H. Nielsen's blog

You can download that colorscheme from his blog as the link listed above, *but it doesn’t work on iTerm*. The reason is the iTerm default have 8 colors only. So you need to make the iTerm to 256 color and download a modified version of the colorscheme which works on 256 color.

To change the iTerm color setting, select Bookmarks -> Manage Profiles from the menu. Select xterm-256color as shown below:

Go to http://www.vim.org/scripts/script.php?script_id=2465 download the wombat256 colorscheme, put the file under /usr/share/vim/vim72/colors/. (vim72 is the version of vim I am running, you may have a different number). Then edit .vimrc in your home directory, add a line “colors wombat256″. Done.

3 Comments to vim wombat colorscheme on Mac iTerm

  1. stanley.ng's Gravatar stanley.ng
    January 6, 2011 at 8:55 pm | Permalink

    Instead of putting the colorscheme in /usr/share/vim/vim72/colors directory, you can create ~/.vim/colors directory to hold that file.

    steps:
    1. mkdir ~/.vim/colors/
    2. download wmbat256.vim and put the file in the ~/.vim/colors folder
    3. in .vimrc, add “colorscheme wmbat256″, “set t_Co=256″, and “syntax=on”

    done!

  2. Aitch's Gravatar Aitch
    February 26, 2011 at 2:19 pm | Permalink

    Man, I’ve been agonising over this trying to get vim, within tmux, running on a remote ubuntu server working properly on my mac iterm, and this tip did it, fantastic!

Leave a Reply

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>