January 3rd, 2011 Add Your Comments

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