When I run vim from the command line in iTerm, syntax highlighting doesn't seem to work locally.
In vim for example I have installed a nice colorscheme that works quite well in MacVim but it would be great if in iTerm it showed the same one.
Any ideas how I can turn this on?
This is the color scheme I'm trying to use http://www.vim.org/scripts/script.php?script_id=2340
That color scheme looks like it only supports 256-color terminals. If Vim thinks that your terminal only supports 8 colors, you won't see that specific color scheme.
You can check this in Vim by:
:echo &t_Co
If that returns 8
, this might be the problem. Try setting it to 256 in your ~/.vimrc
and see if that helps:
let &t_Co=256