ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Vi 使用 Vundle 管理插件执行 PluginInstall 出错

Vi 使用 Vundle 管理插件执行 PluginInstall 出错

Linux操作系统 作者:dxm2025 时间:2014-11-14 13:28:37 0 删除 编辑

Vi 有了 Vundle 这么一个总管(插件管理器),安装插件着实太省事了,再也不需要自己把 *.vim 文件放在各处。只需要做一次

$ git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim

编辑好 ~/.vimrc 文件,装什么每次在这个文件中加上 Plugin 'scrooloose/nerdtree' ,运行  :PluginInstall 即可。

我第一次体验执行 vim +PluginInstall +qall (和在 Vi 中执行  :PluginInstall 同一效果), 总是得到类似这样的错误

Error detected while processing function vundle#installer#new..46_process..vundle#installer#run..vundle#installe

r#install..46_sync..46_make_sync_command..46_get_current_origin_url..46_system:

line    1:

E484: Can't open file /var/folders/xz/vqv039517flcxtqzrq_jjy1xqzfzc0/T/v0rQ2fl/1

Error detected while processing function vundle#installer#new..46_process..vundle#installer#run..vundle#installe

r#install..46_sync:

line    6:

E714: List required

Error detected while processing function vundle#installer#new..46_process:

line   13:

E121: Undefined variable: g:vundle_last_status

E15: Invalid expression: 'error' == g:vundle_last_status

我所使用的 Shell 是 fish, 切换到 bash 也是一样的错误,找到答案是 https://github.com/gmarik/Vundle.vim/issues/175

在 ~/.vimrc 文件中加上一句

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30015039/viewspace-1332554/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-11-09

  • 博文量
    169
  • 访问量
    233177