E185: 找不到曝光的配色方案 [英] E185: Cannot find color scheme solarized

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

问题描述

我通过病原体安装了 Solarized,它在我的 Mac 上的终端和 MacVim 中都运行良好.今天,我尝试在 Linode 上设置一个 Ubuntu 机器.我只是克隆了 我的点文件 并符号链接到我的 .vim.vimrc 文件夹(这与我在本地机器上使用的设置相同.

I have Solarized installed via pathogen and it's been working fine in both terminal and MacVim on my Mac. Today, I tried setting up an Ubuntu box on Linode. I just cloned my dotfiles and symlinked to my .vim and .vimrc folders (this is the same setup as I use on my local machine.

每当我尝试在 Ubuntu 机器上运行 vim 时,我都会收到一个错误

Whenever I try to run vim on the Ubuntu box I get an error

Error detected while processing /root/.vimrc:
line   43:
E185: Cannot find color scheme solarized
Press ENTER or type command to continue

我可以知道我的 .vimrc 正在加载,因为所有其他设置(如行号)都在工作.

I can tell my .vimrc is being loaded because all other setting like line numbers are working.

.vimrc 中的相关行如下:

" settings needed for solarized colorscheme
syntax enable
set background=dark
let g:solarized_termcolors=256
colorscheme solarized

这是我的 .vim/bundle 目录的设置(以防你怀疑我实际上没有在那里安装 solzrized!):

This is the setup of my .vim/bundle directory (incase you suspect I don't actually have solzrized in there!):

~  ls .vim/bundle 
ack                  coffeescript         liquid               snipmate             vim-colors-solarized vim-jst              zencoding
closetag             html5.vim            nerdtree             surround             vim-javascript       vim-rails

另一件事,在 ubunto 机器上的 vim 中运行 echo &t_Co 得到 256.

One other thing, running echo &t_Co in vim on the ubunto box gets me 256.

有什么想法吗?

推荐答案

我知道这有点明显,但是你有没有检查 ~/.vim/bundle/vim-colors-solarized 的内容代码>?以防万一您遇到了 Vim:病原体未加载

I know that it is kind of obvious, but did you check the contents of ~/.vim/bundle/vim-colors-solarized? Just in case you are running in the same issue described in Vim: Pathogen not loading

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

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