When I run vim from the command line in iTerm, syntax highlighting does not seem to work locally.
In vim for example, I installed a nice colorscheme, which works quite well in MacVim, but it will be great if it shows the same in iTerm.
Any ideas how I can open this?
This is the color scheme I want to use
http://www.vim.org/scripts/script.php?script_id=2340
The 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 in Vim in the following ways:
:echo &t_Co
If it returns 8, this is possible Is the problem. Try setting it to 256 in your ~/.vimrc and see if this helps:
let &t_Co=256
let &t_Co=256
p>
When I run vim from the command line in iTerm, the syntax highlighting does not seem to work locally.
In vim for example, I installed a nice colorscheme, which works quite well in MacVim, but it will be great if it shows the same in iTerm.
Any ideas how I can open this?
This is the color scheme I want to use
http://www.vim.org/scripts/script.php?script_id=2340
p>
The 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 in Vim in the following ways:
:echo &t_Co
If it returns 8, this is possible Is the problem. Try setting it to 256 in your ~/.vimrc and see if this helps:
let &t_Co=256