If you’re using vim in iTerm2 on your Mac, make sure you select ‘xterm-256color’ in the Report Terminal Type under Terminal Emulation. This will let vim know that you’re using a terminal capable of 256 colors.

All you need to do now is make sure your .vimrc is set for 256 color schemes:
set t_Co=256
colorscheme grb4
Now you’ll have pretty vim color schemes in iTerm2.
* grb4 is Gary Bernhardt’s color scheme found here: https://github.com/garybernhardt/dotfiles


8 Responses to “Pretty Vim Color Schemes in iTerm2”
Babak Farrokhi January 4, 2011
You may also like xoria256 :
|http://www.vim.org/scripts/script.php?script_id=2140
Kevin Colyar January 4, 2011
Thanks, I’ll check it out.
|Shane Jonas January 6, 2011
Thanks, was looking all over for how to get this going.
|SeerTaak January 29, 2011
Cheers, just what I was searching for.
|rickroll May 23, 2011
Thank you so much
|asterite January 10, 2012
Thanks!!
|greg August 19, 2012
What font are you using ?
|Kevin Colyar August 21, 2012
Not sure what that font was. I’m using 13pt Menlo Regular for Powerline now.
|