diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-07 01:11:59 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-07 01:11:59 +1200 |
commit | fa2fca2d9d24a830910558056de5b608fc2da517 (patch) | |
tree | b1585fb046f370a289b4a3fb30f0afdb22fb2b06 /vim/after/ftplugin/perl.vim | |
parent | Use shorter :map commands for diff/mail para nav (diff) | |
download | dotfiles-fa2fca2d9d24a830910558056de5b608fc2da517.tar.gz dotfiles-fa2fca2d9d24a830910558056de5b608fc2da517.zip |
Define :Boilerplate command for Perl, no <silent>
Diffstat (limited to 'vim/after/ftplugin/perl.vim')
-rw-r--r-- | vim/after/ftplugin/perl.vim | 9 |
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 |