The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Vim::Helper::LoadMod - Find the module under the cursor

DESCRIPTION

Find and open the file for the module under the cursor.

SYNOPSIS

In your config file:

    use Vim::Helper qw/
        LoadMod
    /;

    LoadMod {
        search => [ './lib', ... ],
        key    => '<Leader>gm',
    };

ARGS

find OFFSET "TEXT"

Find the module listed in "TEXT" at the specified character offset.

Example:

    vimph find 10 "require Foo::Bar( ... );" 

This will load the Foo::Bar module.

The offset should be any character that makes up the modules name (typically the current position of the cursor in vim). The text will generally be the entire line from the file.

OPTS

NONE

CONFIGURATION OPTIONS

search => [ @PATHS_TO_CHECK ],

Paths to search for the module source. Defaults to @INC.

key => $KEY

Key to bind to the action in your vimrc file. Defaults to '<Leader>gm'.

AUTHORS

Chad Granum exodist7@gmail.com

COPYRIGHT

Copyright (C) 2012 Chad Granum

Vim-Helper is free software; Standard perl licence.

Vim-Helper is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.