vimrc - vim colorscheme setting has no effect?
phpcn_u1582
phpcn_u1582 2017-05-16 16:39:18
0
3
1060

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?

phpcn_u1582
phpcn_u1582

reply all(3)
我想大声告诉你

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_termcolorsg:solarized_termtrans two parameters.
Reference document: http://ethanschoonover.com/solarized/vim-colors-solarized (Option Details)

Operation effect under terminal:

Operation effect under macvim:

某草草

How did you install it? It is recommended to use vundle to manage vim plug-ins

PHPzhong

If you installed it using vundle, you need to copy or move the .vim file to ~/.vim/colors/solarized.vim

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template