vim Vundle的PluginInstall与Archlinux中的鱼发生冲突

时间:2015-09-09 13:32:26

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

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时,它会正常工作。我该怎么办?

1 个答案:

答案 0 :(得分:10)

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

set shell=/usr/bin/zsh