I set vim colorscheme in vimrc:
syntax on
syntax enable
set background=dark
set t_Co=256
colorscheme solarized
But the effect is different from the one above http://ethanschoonover.com/solarized. Solarized is also installed. What's going on? Is there any configuration required?
我想大声告诉你2017-05-16 16:41:18
What is your operating system? Are you running vim, gVim or macvim? Which version of vim is it?
Try this:
Delete set t_Co=256
Add let g:solarized_termcolors=16
If it still doesn’t work, please try modifying the g:solarized_termcolors
和 g:solarized_termtrans
two parameters.
Reference document: http://ethanschoonover.com/solarized/vim-colors-solarized (Option Details)
Operation effect under terminal:
Operation effect under macvim:
某草草2017-05-16 16:41:18
How did you install it? It is recommended to use vundle to manage vim plug-ins
PHPz2017-05-16 16:41:18
If you installed it using vundle, you need to copy or move the .vim file to ~/.vim/colors/solarized.vim