diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-03 17:30:38 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-03 17:30:38 +1200 |
commit | af3569d8a74c744770e77f2b2b8d7956c5d6f8c0 (patch) | |
tree | e0c8187060dbc892e1d52bebcea3427338129ab6 /vim/after/ftplugin | |
parent | Merge branch 'feature/mkvi' into develop (diff) | |
download | dotfiles-af3569d8a74c744770e77f2b2b8d7956c5d6f8c0.tar.gz dotfiles-af3569d8a74c744770e77f2b2b8d7956c5d6f8c0.zip |
Add _v/_V Vim maps for Perl version bumps
Diffstat (limited to 'vim/after/ftplugin')
-rw-r--r-- | vim/after/ftplugin/perl.vim | 9 |
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' |