aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin/sh.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-08 13:39:30 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-08 13:39:30 +1300
commit02a368550446f9d2ee959905e0d633dc0f4edc98 (patch)
tree64f63d44ae28e4f29d1a6c98ba40068a76e429fb /vim/ftplugin/sh.vim
parent98e19b3fb954c63b77c9b6fe8f38c0a2c7c5627f (diff)
downloaddotfiles-02a368550446f9d2ee959905e0d633dc0f4edc98.tar.gz
dotfiles-02a368550446f9d2ee959905e0d633dc0f4edc98.zip
Use consistent/thorough ftplugin/indent unloading
Unload all maps too, with silent! in case they don't exist.
Diffstat (limited to 'vim/ftplugin/sh.vim')
-rw-r--r--vim/ftplugin/sh.vim9
1 files changed, 6 insertions, 3 deletions
diff --git a/vim/ftplugin/sh.vim b/vim/ftplugin/sh.vim
index 179ea56e..a8c94445 100644
--- a/vim/ftplugin/sh.vim
+++ b/vim/ftplugin/sh.vim
@@ -45,6 +45,9 @@ nnoremap <buffer> <silent>
\ <LocalLeader>l
\ :<C-U>execute b:sh_lint<CR>
-" Clear away these extra changes
-let b:undo_user_ftplugin
- \ = 'setlocal keywordprg< | unlet! b:sh_check b:sh_lint'
+" Unload this filetype plugin
+let b:undo_user_ftplugin = ''
+ \ . '|setlocal keywordprg<'
+ \ . '|unlet! b:sh_check b:sh_lint'
+ \ . '|silent! unmap <LocalLeader>c'
+ \ . '|silent! unmap <LocalLeader>l'