Vim Solarized颜色方案:我应该在我的.vimrc中设置`call pathogen#infect()`,以使语法高亮正常工作? [英] Vim Solarized Color scheme: Should I have to set `call pathogen#infect()` in my .vimrc to make the syntax highlighting work properly?

查看:2129
本文介绍了Vim Solarized颜色方案:我应该在我的.vimrc中设置`call pathogen#infect()`,以使语法高亮正常工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚接触vim,想知道我的.vimrc文件中是否应该有 call pathogen#infect 。如果我没有这个,它告诉我 E185:找不到配色方案太阳化。我知道有很多关于这个话题的问题,但这一个在具体我发现很难回答。



有更好的方法吗? / strong>



详情:




  • Mac OSX

  • iTerm

  • ZSH(不要认为这很重要,但以为我会把它放在那里。)



这也是颜色方案应该在文件外面的样子吗?





参考文章:



使用太阳化颜色方案的Vim高亮显示



E185:找不到日光化的配色方案



solarized着色*完全*。工作在.vimrc文件,其他文件有语法着色问题



.vimrc中的E10错误



调整vimrc中的颜色或颜色方案本身

解决方案

这取决于你如何安装Solarized。如果它位于〜/ .vim / bundle 下,则需要调用pathogen#infect()



你的屏幕截图看起来和我一样,虽然我从来没有考虑到我可能得到错误的颜色。 p>

I'm new to vim and was wondering if I was supposed to have the call pathogen#infect in my .vimrc file. If I don't have this it tells me E185: Cannot find color scheme solarized. I realize there are many questions out there on this topic but this one in specific I found difficult to answer.

Is there a better way to do this?

Details:

  • Mac OSX
  • iTerm
  • ZSH (don't think this matters but thought I'd throw it in there.)

Also is this how the color scheme should look outside of files?

Articles referenced:

Vim highlighting with solarized color scheme

E185: Cannot find color scheme solarized

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

E10 errors in .vimrc

Adjust colors in vimrc or rather in the color scheme itself

解决方案

It depends on how you installed Solarized. If it sits beneath ~/.vim/bundle then yes, you need to call pathogen#infect(). (No package under there will be available otherwise.)

Your screenshot looks exactly like mine, although I never considered the possibility that I might be getting the wrong colours.

这篇关于Vim Solarized颜色方案:我应该在我的.vimrc中设置`call pathogen#infect()`,以使语法高亮正常工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆