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

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 文件中加上一句

  • 相关文章推荐:
  • VIM中使用正则匹配中文
  • 如何用Nagios远程执行插件(NRPE)来检测服务器内存使用率
  • Linux有问必答:如何扩展XFS文件系统
  • 本文来自:爱好Linux技术网
  • 本文链接:http://www.ahlinux.com/mainte/8578.html

你可能感兴趣的:(Vi 使用 Vundle 管理插件执行 PluginInstall 出错)