vim/vim-7.3-sh_is_bash.patch

19 lines
538 B
Diff
Raw Permalink Normal View History

Index: vim-8.2.2411/runtime/syntax/sh.vim
===================================================================
--- vim-8.2.2411.orig/runtime/syntax/sh.vim
+++ vim-8.2.2411/runtime/syntax/sh.vim
@@ -74,6 +74,13 @@ if exists("b:is_dash")
let b:is_posix= 1
endif
+" Neither is_kornshell nor is_bash was explicitly set, and
+" /bin/sh is a bash on SUSE LINUX.
+if exists("b:is_sh")
+ let b:is_bash= 1
+ unlet b:is_sh
+endif
+
" set up default g:sh_fold_enabled {{{1
" ================================
if !exists("g:sh_fold_enabled")