aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-07 01:11:59 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-07 01:11:59 +1200
commitfa2fca2d9d24a830910558056de5b608fc2da517 (patch)
treeb1585fb046f370a289b4a3fb30f0afdb22fb2b06 /vim/after/ftplugin
parentbcad40034e1e472f18adcfec48998d114d3618be (diff)
downloaddotfiles-fa2fca2d9d24a830910558056de5b608fc2da517.tar.gz
dotfiles-fa2fca2d9d24a830910558056de5b608fc2da517.zip
Define :Boilerplate command for Perl, no <silent>
Diffstat (limited to 'vim/after/ftplugin')
-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