Vim:"E185:找不到日光照射的配色方案". [英] Vim: "E185: Cannot find color scheme solarized"

查看:252
本文介绍了Vim:"E185:找不到日光照射的配色方案".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

设置一台新机器,并尝试使Solarized在Vim中运行.运行vim时出现以下错误:

Setting up a new machine and trying to get Solarized running in Vim. Getting the following error when I run vim:

E185: Cannot find color scheme solarized

尝试遵循太阳能的安装说明关于官方仓库的自述文件.选中了此类似的问题,答案,它通过在目录中实际包含适当的文件来解决了该问题,但是正如您在下面看到的那样,我的目录确实充满了好东西(我只是克隆了它).

Tried to follow Pathogen install instructions from the Solarized README on the official repo. Checked this similar question & answer, which solved the problem by actually having the proper files in the directory, but as you can see below, my directory is indeed full of goodies (I just cloned it).

  • iTerm2
  • .vimrc正在加载,其他插件正在运行
  • 还尝试手动安装了Solarized(通过将solarized.vim移至.vim/colors),但出现了相同的错误
32 syntax enable  
33 " colo wombat  
34  
35 """ Solarized """  
36 let g:solarized_termcolors=256  
37 set background=dark  
38 colorscheme solarized  

.vim目录

├── autoload  
│   └── pathogen.vim  
├── bundle  
│   ├── ctrlp.vim  
│   │   ├── autoload  
│   │   │   ├── ctrlp  
│   │   │   │   ├── bookmarkdir.vim  
│   │   │   │   ├── buffertag.vim  
│   │   │   │   ├── changes.vim  
│   │   │   │   ├── dir.vim  
│   │   │   │   ├── line.vim  
│   │   │   │   ├── mixed.vim  
│   │   │   │   ├── mrufiles.vim  
│   │   │   │   ├── quickfix.vim  
│   │   │   │   ├── rtscript.vim  
│   │   │   │   ├── tag.vim  
│   │   │   │   ├── undo.vim  
│   │   │   │   └── utils.vim  
│   │   │   └── ctrlp.vim  
│   │   ├── doc  
│   │   │   ├── ctrlp.txt  
│   │   │   └── tags  
│   │   ├── plugin  
│   │   │   └── ctrlp.vim  
│   │   └── readme.md  
│   ├── supertab  
│   │   ├── Makefile  
│   │   ├── README.rst  
│   │   ├── doc  
│   │   │   ├── supertab.txt  
│   │   │   └── tags  
│   │   └── plugin  
│   │       └── supertab.vim  
│   ├── vim-colors-solarized  
│   │   ├── README.mkd  
│   │   ├── autoload  
│   │   │   └── togglebg.vim  
│   │   ├── bitmaps  
│   │   │   └── togglebg.png  
│   │   ├── colors  
│   │   │   └── solarized.vim  
│   │   └── doc  
│   │       ├── solarized.txt  
│   │       └── tags  
│   ├── vim-jade  
│   └── vim-surround  
│       ├── README.markdown  
│       ├── doc  
│       │   ├── surround.txt  
│       │   └── tags  
│       └── plugin  
│           └── surround.vim  
└── colors  
    └── wombat.vim  

推荐答案

以上都不适合我的另一种解决方案.这是一个真正的脸色苍白.

Another solution after none of the above worked for me. This one's a real face-palmer.

请确保

""" Solarized """  
let g:solarized_termcolors=256  
set background=dark  
colorscheme solarized 

或您使用的任何设置都在pathogen#infect()代码之后 .

or whatever settings you use comes after your pathogen#infect() code.

这篇关于Vim:"E185:找不到日光照射的配色方案".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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