Preserve fish as 'shell' for Vim 7.4.276 or later (#128)

As of 7.4.276, Vim understands how to run commands in subshells when
'shell' is fish.  This fixes the most common problems with running
external commands from Vim.

Plugins may still need to accommodate for fish, but fixing the cognitive
dissonance of having the user's shell changed outweighs the benefit to
lazy plugin writers.
This commit is contained in:
James McCoy
2016-09-05 20:40:29 -05:00
committed by Tim Pope
parent 9e91be7e0f
commit 4b75359218

View File

@@ -61,7 +61,7 @@ if has('path_extra')
setglobal tags-=./tags tags-=./tags; tags^=./tags;
endif
if &shell =~# 'fish$'
if &shell =~# 'fish$' && (v:version < 704 || v:version == 704 && !has('patch276'))
set shell=/bin/bash
endif