vim Vundle 的 PluginInstall 与 Archlinux 中的fish 冲突

标签 vim zsh archlinux fish vundle

在 Arch 中,当我使用 Vim Vundle 的 PluginInstall/PluginUpdate 时,它​​会显示很多错误信息

Processing 'tpope/vim-fugitive'
Error detected while processing function vundle#installer#new..<SNR>146_process..vundle#installer#run..vundle#installer#ins
tall..<SNR>146_sync..<SNR>146_make_sync_command..<SNR>146_get_current_origin_url..<SNR>146_system:
line    1:
E484: Can't open file /tmp/v8J8IUB/7
Error detected while processing function vundle#installer#new..<SNR>146_process..vundle#installer#run..vundle#installer#ins
tall..<SNR>146_sync:
line    6:
E714: List required
Error detected while processing function vundle#installer#new..<SNR>146_process:
line   13:
E121: Undefined variable: s:last_status
E15: Invalid expression: 'error' == s:last_status
line   17:
E121: Undefined variable: s:last_status
-- More --

我必须输入 Enter重复,以便它可以 process next Plugin,在处理每个插件时,都会显示同样的错误信息:
Processing 'sjl/gundo.vim'
Error detected while processing function vundle#installer#new..<SNR>146_process..vundle#installer#run..vundle#installer#ins
tall..<SNR>146_sync..<SNR>146_make_sync_command..<SNR>146_get_current_origin_url..<SNR>146_system:
line    1:
E484: Can't open file /tmp/v8J8IUB/12
Error detected while processing function vundle#installer#new..<SNR>146_process..vundle#installer#run..vundle#installer#ins
tall..<SNR>146_sync:
line    6:
E714: List required
Error detected while processing function vundle#installer#new..<SNR>146_process:
line   13:
E121: Undefined variable: s:last_status
E15: Invalid expression: 'error' == s:last_status
line   17:
E121: Undefined variable: s:last_status

当我设置 fish shell 作为默认 shell ,它会发生冲突。当我切换回 zsh ,它会正常工作。我能怎么做?

最佳答案

至少更新到 Vim 7.4.276,其中 adds support for fish ,或将 Vim 使用的 shell 设置为您的 Vim 版本支持的 shell(如 zsh):

set shell=/usr/bin/zsh

关于vim Vundle 的 PluginInstall 与 Archlinux 中的fish 冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32480996/

相关文章:

zsh - 如何为zsh补全系统提供数据

c - 文件系统级别的 SETUID

Python theano undefined symbol : _ZdlPvm error

Vim:在长线内快速移动

macos - VIM FTP 保存后自动上传?

python - Shell 脚本无法识别别名

Arch Arm 的交叉编译不会生成功能可执行文件

Vim 游标用 .vimrc 换行

python - 在 vimscript 中使用 Python : How to export a value from a python script back to vim?

linux - 应用程序菜单编辑器