search

Home  >  Q&A  >  body text

vimrc - vim colorscheme setting has no effect?

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_u1582phpcn_u15822774 days ago1056

reply all(3)I'll reply

  • 我想大声告诉你

    我想大声告诉你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_termcolorsg:solarized_termtrans two parameters.
    Reference document: http://ethanschoonover.com/solarized/vim-colors-solarized (Option Details)

    Operation effect under terminal:

    Operation effect under macvim:

    reply
    0
  • 某草草

    某草草2017-05-16 16:41:18

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

    reply
    0
  • PHPz

    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

    reply
    0
  • Cancelreply