aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-08 13:51:32 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-08 13:51:32 +1300
commit6a5c86738c85296e0b8393dac7ce58285fa85149 (patch)
treeca323b430dbbcca42bc8e0e0f1971f33a5ad6fbc /vim/ftplugin
parentRemove null command from b:undo_* variables (diff)
downloaddotfiles-6a5c86738c85296e0b8393dac7ce58285fa85149.tar.gz
dotfiles-6a5c86738c85296e0b8393dac7ce58285fa85149.zip
Use "nunmap" not "unmap" for b:undo_* var
We only want to remove the normal mode mapping, since that's all we set.
Diffstat (limited to 'vim/ftplugin')
-rw-r--r--vim/ftplugin/perl.vim6
-rw-r--r--vim/ftplugin/sh.vim4
2 files changed, 5 insertions, 5 deletions
diff --git a/vim/ftplugin/perl.vim b/vim/ftplugin/perl.vim
index 0db8d1ab..c18653d2 100644
--- a/vim/ftplugin/perl.vim
+++ b/vim/ftplugin/perl.vim
@@ -15,6 +15,6 @@ nnoremap <buffer> <silent>
" Unload this filetype plugin
let l:undo_user_ftplugin
- \ = 'silent! unmap <LocalLeader>c'
- \ . '|silent! unmap <LocalLeader>l'
- \ . '|silent! unmap <LocalLeader>t'
+ \ = 'silent! nunmap <LocalLeader>c'
+ \ . '|silent! nunmap <LocalLeader>l'
+ \ . '|silent! nunmap <LocalLeader>t'
diff --git a/vim/ftplugin/sh.vim b/vim/ftplugin/sh.vim
index 61d2994d..60e8b6c4 100644
--- a/vim/ftplugin/sh.vim
+++ b/vim/ftplugin/sh.vim
@@ -49,5 +49,5 @@ nnoremap <buffer> <silent>
let b:undo_user_ftplugin
\ = 'setlocal keywordprg<'
\ . '|unlet! b:sh_check b:sh_lint'
- \ . '|silent! unmap <LocalLeader>c'
- \ . '|silent! unmap <LocalLeader>l'
+ \ . '|silent! nunmap <LocalLeader>c'
+ \ . '|silent! nunmap <LocalLeader>l'