256 colors in Vim, OS X Lion

colorsterminalvim

Since OS X Lion the terminal.app is xterm-256color terminal. However vim is rendering only 8 colors. I tried the 7.3 supplied with Lion and 7.3 that is terminal version of MacVim.

Vim Wiki sais I need to set configure option –enable-256-color (before compiling), but I get configure: WARNING: unrecognized options: --enable-256-color.

So how can I get 256 colors in terminal eventually?

UPD: I tested color schemes: desert, dante, ir_black – and have only 8 or 16 colors.

I also have set t_Co=256 in my .vimrc

Best Answer

It is unnecessary for you to build Vim. The version of Vim installed with Mac OS X Lion 10.7 includes support for 256 colors. You simply need to install (and select) a color scheme that makes use of the extended color palette, e.g., desert256.

Related Question