Add ftplugin/perl.vim Apart from general tab options this adds ~/perl5/ptags to tags and introduces mapping for (in|de)crease prove's test plan count.
1 files changed, 14 insertions(+), 0 deletions(-) A ftplugin/perl.vim
A ftplugin/perl.vim => ftplugin/perl.vim +14-0
@@ 0,0 1,14 @@ setlocal shiftwidth=4 setlocal tabstop=4 setlocal tags+=~/perl5/ptags " Increment and decrement Test::More plan number function! s:PlanNumberFeed(keys) if search('plan tests => \d', 'e') > 0 call feedkeys(a:keys, 'nt') endif endfunction noremap <silent><leader><c-a> :call <SID>PlanNumberFeed("\<C-a>")<cr> noremap <silent><leader><c-x> :call <SID>PlanNumberFeed("\<C-x>")<cr>