sponsor Vim development Vim logo Vim Book Ad

perl_version_bump.vim : Increment Perl version numbers

 script karma  Rating 4/1, Downloaded by 1  Comments, bugs, improvements  Vim wiki

created by
Tom Ryder
 
script type
ftplugin
 
description
This filetype plugin for Perl code ("perl" filetype) provides buffer-local mapping targets for normal mode to increment either the major or minor version number of a package-scoped $VERSION assignment.

So with this format:

    our $VERSION = '1.23';

Keying a map to  <Plug>PerlVersionBumpMinor would yield:

    our $VERSION = '1.24';

Keying a map to <Plug>PerlVersionBumpMajor would yield:

    our $VERSION = '2.00';

There is no support for development versions with underscore prefixes like 1.23_001 (yet).

https://sanctum.geek.nz/cgit/vim-perl-version-bump.git
 
install details
This should probably be saved as ~/.vim/after/ftplugin/perl/version_bump.vim (per the distribution layout) or ~/.vim/after/ftplugin/perl_version_bump.vim (if you prefer), so that it definitely loads *after* the primary perl.vim plugin. Save the autoload file in ~/.vim/autoload/perl/version/bump.vim. Or, just use your favourite Vim plugin manager.
 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-perl-version-bump-0.1.1.tar.gz 0.1.1 2018-07-04 7.0 Tom Ryder Correct examples in documentation
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo