mirror of
https://github.com/tpope/vim-sensible.git
synced 2025-11-11 12:33:47 -05:00
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:
@@ -141,6 +141,11 @@ if exists(":DiffOrig") != 2
|
||||
\ | diffthis | wincmd p | diffthis
|
||||
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.
|
||||
if !exists('g:loaded_matchit') && findfile('plugin/matchit.vim', &rtp) ==# ''
|
||||
runtime! macros/matchit.vim
|
||||
|
||||
Reference in New Issue
Block a user