E185: Cannot find color scheme 'solarized'

来源:互联网 发布:java 互斥锁 编辑:程序博客网 时间:2024/06/16 02:16

在研究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.vimThanks for your help..vimrc filecall pathogen#infect()set nocompatiblesyntax onfiletype plugin indent onset 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,startset hiddenlet g:solarized_termcolors=256"let g:solarized_visibility="high""let g:solarized_contrast ="high"set t_Co=16set background=darkcolorscheme solarizedhighlight Normal ctermbg=NONEhighlight nonText ctermbg=NONEset guifont=DejaVu\ Sans\ Mono\ 10set antialiasenter image description here

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

$HOME/.vimrcor there, if you use Vim 7.4 or newer:$HOME/.vim/vimrcNever, 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/
原创粉丝点击