From 4b7535921819a5b2e39be68f81109ea684232503 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Mon, 5 Sep 2016 20:40:29 -0500 Subject: [PATCH] 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. --- plugin/sensible.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/sensible.vim b/plugin/sensible.vim index ac6ef35..2fcbc86 100644 --- a/plugin/sensible.vim +++ b/plugin/sensible.vim @@ -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