aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim')
-rw-r--r--vim/after/ftplugin/perl.vim9
1 files changed, 6 insertions, 3 deletions
diff --git a/vim/after/ftplugin/perl.vim b/vim/after/ftplugin/perl.vim
index d1e5dd52..a303fa75 100644
--- a/vim/after/ftplugin/perl.vim
+++ b/vim/after/ftplugin/perl.vim
@@ -18,9 +18,12 @@ if exists('no_plugin_maps') || exists('no_perl_maps')
endif
" Add boilerplate intelligently
-nnoremap <buffer> <silent> <LocalLeader>b
- \ :<C-U>call perl#Boilerplate()<CR>
-let b:undo_ftplugin .= '|nunmap <buffer> <LocalLeader>b'
+command -buffer Boilerplate
+ \ call perl#Boilerplate()
+nnoremap <buffer> <LocalLeader>b
+ \ :<C-U>Boilerplate<CR>
+let b:undo_ftplugin .= '|delcommand Boilerplate'
+ \ . '|nunmap <buffer> <LocalLeader>b'
" Mappings to choose compiler
nnoremap <buffer> <LocalLeader>c