Move fish 'shell' override down with other reparative behaviors

This commit is contained in:
Tim Pope
2022-12-27 07:58:56 -05:00
parent c48736b2c3
commit 1415c5b66d

View File

@@ -62,10 +62,6 @@ if has('path_extra')
setglobal tags-=./tags tags-=./tags; tags^=./tags;
endif
if &shell =~# 'fish$' && (v:version < 704 || v:version == 704 && !has('patch276'))
set shell=/usr/bin/env\ bash
endif
set autoread
if &history < 1000
@@ -85,6 +81,11 @@ if &t_Co == 8 && $TERM !~# '^Eterm'
set t_Co=16
endif
" If the running Vim lacks support for the Fish shell, use Bash instead.
if &shell =~# 'fish$' && (v:version < 704 || v:version == 704 && !has('patch276'))
set shell=/usr/bin/env\ bash
endif
" Disable a legacy behavior that can break plugin maps.
if has('langmap') && exists('+langremap') && &langremap
set nolangremap