mirror of
https://github.com/tpope/vim-sensible.git
synced 2025-11-08 11:03:47 -05:00
Move fish 'shell' override down with other reparative behaviors
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user