solarized coloring only *fully* working in .vimrc file, other files have syntax coloring issues

大憨熊 提交于 2020-01-04 06:25:07

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!