E185: Cannot find color scheme 'solarized'

在研究VIM的时候,发现了这么一个错误。找不到病原体颜色,报错为:

E185: Cannot find color scheme 'solarized'

咋面向google解决问题是,找到答案:
解决方案:

cp ~/.vim/bundle/vim-colors-solarized/colors/solarized.vim ~/.vim/colors/

原文链接在这里
主题:
我安装了vimXubuntu过度曝光方案颜色。这是工作正常,直到我安装病原体。现在,我得到以下错误messahe盯着Vim在终端:错误处理/usr/share/vim/vimrc时发现:42行:E185:找不到配色方案的过度曝光。vim”实际上,配色方案仍在运行,尽管这个错误消息。有下面的树状和。vimrc文件。谢谢你的帮助。。vimrc文件

原文:
I installed vim on Xubuntu with solarized scheme color. It was working fine until I install Pathogen. Now, I keep getting the following error messahe while staring Vim in a terminal :

Error detected while processing /usr/share/vim/vimrc: line 42: E185: Cannot find color scheme ‘solarized.vim’

Actually, the color scheme is still running despite this error message.

there is below the arborescence and the .vimrc file.

/home/marc/.vim/
/home/marc/.vim/autoload/
/home/marc/.vim/autoload/pathogen.vim

/home/marc/.vim/bundle/
/home/marc/.vim/bundle/solarized/
/home/marc/.vim/bundle/solarized/colors/solarized.vim

/home/marc/.vim/bundle/vim-sensible/
/home/marc/.vim/bundle/vim-sensible/.git/
/home/marc/.vim/bundle/vim-sensible/plugin/sensible.vim
Thanks for your help.

.vimrc file

call pathogen#infect()


set nocompatible


syntax on
filetype plugin indent on


set title                 

set number                
set ruler                
set wrap                  

set scrolloff=3            


set ignorecase            
set smartcase             

set incsearch             

set hlsearch              


set visualbell            
set noerrorbells          


set backspace=indent,eol,start


set hidden






let g:solarized_termcolors=256
"let g:solarized_visibility="high"
"let g:solarized_contrast ="high"
set t_Co=16
set background=dark
colorscheme solarized
highlight Normal ctermbg=NONE
highlight nonText ctermbg=NONE
set guifont=DejaVu\ Sans\ Mono\ 10
set antialias
enter image description here

解决方案:
你的应该是:或者,如果你使用Vim7.4或更新的版本:永远、永远、永远做任何Vim-related之外的。
原文:
Your vimrc is supposed to be here:

$HOME/.vimrc
or there, if you use Vim 7.4 or newer:

$HOME/.vim/vimrc
Never, never, never do anything Vim-related outside of $HOME.

楼主:你好,谢谢你的澄清。我把文件夹。从 vim/home/marc/.vim//home/.vim/ 我也该文件。vimrc,/home/.vim/vimrc但我仍然有相同的错误消息。7.4目前正在安装
(原文:Hi, Thanks for the clarification. I moved the folder. vim from /home/marc/.vim/ to /home/.vim/ I moved also the file .vimrc to /home/.vim /vimrc But I still have the same error message. 7.4 is currently installed)

网友:不。你没有得到它,是一个变量代表您的“家”目录。你应该和。

(原文:No. You didn’t get it; $HOME is a variable representing your “home” directory. You should have /home/marc/.vim/ and /home/marc/.vim/vimrc.)

楼主:同样的错误,我添加了我的帖子的截图在底部显示的目录路径。

(原文:same error , I added a screenshot in the bottom of my post to show the directory path.)

解决方案:
我也面临同样的问题,这是解决下面的文件复制到目录的颜色。
原文:
I also faced the same problem and This is resolved by copying the file below to the colors directory.

cp ~/.vim/bundle/vim-colors-solarized/colors/solarized.vim ~/.vim/colors/
  • 5
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值