【问题标题】:vim Vundle's PluginInstall conflict with fish in Archlinuxvim Vundle 的 PluginInstall 与 Archlinux 中的 fish 冲突
【发布时间】:2015-09-09 13:32:26
【问题描述】:

在 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下一个插件,并且在处理每个插件时,它都会显示相同的错误消息:

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 zsh archlinux fish vundle


    【解决方案1】:

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

    set shell=/usr/bin/zsh
    

    【讨论】:

      猜你喜欢
      • 2014-08-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-16
      • 1970-01-01
      相关资源
      最近更新 更多