Mark Grimes > App-EditorTools > App::EditorTools::Vim

Download:
App-EditorTools-0.19.tar.gz

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

App::EditorTools::Vim - Vim binding to App::EditorTools

SYNOPSIS ^

    # Install the vim script to create binding to App::EditorTools with:
        editortools install-vim

DESCRIPTION ^

Once the vim bindings have been installed (per the instructions in the SYNOPIS) you can use the mappings below speed editing/refactoring your Perl code. See App::EditorTools for a description of each refactoring routine.

MAPPINGS ^

,pp

EditorToolsMenu - Brings up a menu to choose the following routines

,pL

RenameVariable - Placing the cursor over a variable and pressing this mapping will prompt for a new variable name, then rename all occurrences of the varialbe within that lexical scope to the new name.

See App::EditorTools for more.

,pI

IntroduceTemporaryVariable - Selecting a range of text and pressing this mapping will prompt for a new variable name, then add a new statement declaring the variable and setting it the the highlighted expression, and finally replace the currently highlighted text with a reference to the variable.

See App::EditorTools for more.

,pP

RenamePackageFromPath - Pressing this mapping will change the package declaration in the current file to reflect that files path name. For example, if you are editing lib/App/EditorTools.pm the package declaration will be changed to package App::EditorTools;. At the moment there must be a valid package declaration in the file for this to work.

See App::EditorTools for more.

SEE ALSO ^

Also see PPIx::EditorTools, Padre, and PPI.

AUTHOR ^

Mark Grimes, <mgrimes@cpan.org>

COPYRIGHT AND LICENSE ^

Copyright (C) 2009 by Mark Grimes

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.2 or, at your option, any later version of Perl 5 you may have available.

syntax highlighting: