aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin/sh.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/ftplugin/sh.vim')
-rw-r--r--vim/ftplugin/sh.vim9
1 files changed, 2 insertions, 7 deletions
diff --git a/vim/ftplugin/sh.vim b/vim/ftplugin/sh.vim
index 85251aa1..21d494e3 100644
--- a/vim/ftplugin/sh.vim
+++ b/vim/ftplugin/sh.vim
@@ -23,6 +23,8 @@ endif
" Use han(1df) as a man(1) wrapper for Bash files if available
if exists('b:is_bash') && executable('han')
setlocal keywordprg=han
+ let b:undo_user_indent
+ \ = 'setlocal keywordprg<'
endif
" Map checker based on shell family
@@ -48,10 +50,3 @@ endif
nnoremap <buffer> <silent>
\ <LocalLeader>l
\ :<C-U>execute b:lint<CR>
-
-" Undo
-if !exists('b:undo_ftplugin')
- let b:undo_ftplugin = ''
-endif
-let b:undo_ftplugin = b:undo_ftplugin
- \ . '|setlocal keywordprg<'