问题
My .vimrc file contains :
syntax on
set background=light
let g:solarized_termcolors=16
se t_Co=16
colorscheme solarized
- I have put the solarized.clr file into my ~/Library/Colors/ folder
So this is some code in my .vimrc file : http://i.imgur.com/WGqMy.png
This is some code in a test file within ~/ : http://i.imgur.com/fJLIh.png
I've been working on this for a while now.. driving me nuts. I'm new to all of this vim configuration stuff though.
回答1:
From your screenshot, it looks as you haven't installed the solarized colors in your terminal emulator (for example, the background should be the same color as the background of solarized's homepage, not white). The vim solarized color scheme works only if you set your terminal emulator to use the solarized colors. So it isn't actually fully working for any file.
Is your terminal emulator the Mac OS X Terminal.App? In this case, follow these instructions (otherwise look for instructions for your terminal emulator on the scholarized homepage and in the git repository).
来源:https://stackoverflow.com/questions/11784594/solarized-coloring-only-fully-working-in-vimrc-file-other-files-have-syntax