Provide g:is_posix default

Resolves: https://github.com/tpope/vim-sensible/issues/140
Resolves: https://github.com/tpope/vim-sensible/pull/127
This commit is contained in:
Tim Pope
2022-12-29 02:37:04 -05:00
parent dad453eb1b
commit eb59f45508

View File

@@ -141,6 +141,11 @@ if exists(":DiffOrig") != 2
\ | diffthis | wincmd p | diffthis \ | diffthis | wincmd p | diffthis
endif endif
" Correctly highlight $() and other modern affordances in filetype=sh.
if !exists('g:is_posix') && !exists('g:is_bash') && !exists('g:is_kornshell') && !exists('g:is_dash')
let g:is_posix = 1
endif
" Load matchit.vim, but only if the user hasn't installed a newer version. " Load matchit.vim, but only if the user hasn't installed a newer version.
if !exists('g:loaded_matchit') && findfile('plugin/matchit.vim', &rtp) ==# '' if !exists('g:loaded_matchit') && findfile('plugin/matchit.vim', &rtp) ==# ''
runtime! macros/matchit.vim runtime! macros/matchit.vim