E185: Cannot find color scheme solarized

被刻印的时光 ゝ 提交于 2019-11-28 06:43:48
mMontu

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

I was running into this problem just now, too. I had my call pathogen#infect() line in my .vimrc just fine, but was getting the

E185: Cannot find color scheme solarized

error, like you. I moved my call pathogen#infect() up to the top of my .vimrc and all is swell now. Try that if you're still having problems!

:colo[rscheme] {name}   Load color scheme {name}.  This searches 'runtimepath'
            for the file "colors/{name}.vim.  The first one that
            is found is loaded.

You should put solarized.vim in ~/.vim/colors/.

This is what I did;

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

One step you might be missing is to add

call pathogen#infect()

to your .vimrc file.

Src: http://www.vim.org/scripts/script.php?script_id=2332

I just ran into this problem myself on a new CentOS box where 'vi' was mapped to a version of VIM without syntax support (ie. -syntax) and was giving the E185: Cannot find color scheme solarized error, while 'vim' mapped to a version with syntax support and worked fine with solarized.

Aliasing 'vi' to 'vim' resolved the issue.


For reference:

To check if the version of vim that you are running has support for syntax highlighting, run :version from within vim. -syntax means no support, +syntax means it has support.

To create the alias, append alias vi='vim' to your ~/.bashrc or ~/.bash_profile

To re-source, type source ~/.bashrc or source ~/.bash_profile, whichever is appropriate for your setup.

I was getting this problem and I fixed it by issuing

cd ~/.yadr
git pull
rake update

I fix it ;)

Found this bug:

https://github.com/altercation/vim-colors-solarized/issues/104

cp ~/.vim/bundle/vim-colors-solarized/colors/solarized.vim ~/.vim/colors/
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!