aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-08 12:39:21 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-08 12:44:59 +1300
commit58dd8c7f1399a33967a839711a91286da1d7966b (patch)
tree968567d961f463d6ab2b06e00e9ae5e6efc7dc10
parentaa8690deaa873c384b9d3eafd2d39059ff0d753e (diff)
downloaddotfiles-58dd8c7f1399a33967a839711a91286da1d7966b.tar.gz
Move ftplugin/sh.vim b:undo def to end of file
-rw-r--r--vim/ftplugin/sh.vim6
1 files changed, 4 insertions, 2 deletions
diff --git a/vim/ftplugin/sh.vim b/vim/ftplugin/sh.vim
index 50add09b..f2592e6e 100644
--- a/vim/ftplugin/sh.vim
+++ b/vim/ftplugin/sh.vim
@@ -18,8 +18,6 @@ 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_ftplugin
- \ = 'setlocal keywordprg<'
endif
" Map checker based on shell family
@@ -45,3 +43,7 @@ endif
nnoremap <buffer> <silent>
\ <LocalLeader>l
\ :<C-U>execute b:lint<CR>
+
+" Clear away these extra changes
+let b:undo_user_ftplugin
+ \ = 'setlocal keywordprg<'