aboutsummaryrefslogtreecommitdiff
path: root/vim/after
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-03 17:30:38 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-03 17:30:38 +1200
commitaf3569d8a74c744770e77f2b2b8d7956c5d6f8c0 (patch)
treee0c8187060dbc892e1d52bebcea3427338129ab6 /vim/after
parent7ba4d39c0544de736ef16ac6f6451e439c656c4a (diff)
downloaddotfiles-af3569d8a74c744770e77f2b2b8d7956c5d6f8c0.tar.gz
dotfiles-af3569d8a74c744770e77f2b2b8d7956c5d6f8c0.zip
Add _v/_V Vim maps for Perl version bumps
Diffstat (limited to 'vim/after')
-rw-r--r--vim/after/ftplugin/perl.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/vim/after/ftplugin/perl.vim b/vim/after/ftplugin/perl.vim
index e9747aa3..37cd1c08 100644
--- a/vim/after/ftplugin/perl.vim
+++ b/vim/after/ftplugin/perl.vim
@@ -25,3 +25,12 @@ let b:undo_ftplugin = b:undo_ftplugin
\ . '|nunmap <buffer> <LocalLeader>c'
\ . '|nunmap <buffer> <LocalLeader>l'
\ . '|nunmap <buffer> <LocalLeader>t'
+
+" Bump version numbers
+nnoremap <buffer> <LocalLeader>v
+ \ :<C-U>call perl#BumpVersionMinor()<CR>
+nnoremap <buffer> <LocalLeader>V
+ \ :<C-U>call perl#BumpVersionMajor()<CR>
+let b:undo_ftplugin = b:undo_ftplugin
+ \ . '|nunmap <buffer> <LocalLeader>v'
+ \ . '|nunmap <buffer> <LocalLeader>V'