in reply to Integrating Perldoc With Vim

That reminds me to fiddle with the iskeyword so that if ('|::) present, could look up the module documentation.

OTOH, a way similar to runrig's could allow to call perldoc on any number of tokens in a module name. If DBIx::Simple::Examples is written somewhere, then the function could be invoked, with an appropriate number, to invoke perldoc on any of DBIx, DBIx::Simple, and DBIx::Simple::Examples components.

Replies are listed 'Best First'.
Re^2: Integrating Perldoc With Vim
by parv (Parson) on Jan 24, 2008 at 07:41 UTC

    Here is some code which works with Vim 7 (May 7, 2006); the tokenization is in the last function. Calling Perldoc() on a particular token in the list returned from Tokenize_Perlmod() is left as an exercise for the reader (or, until I find some more time).

    A few minutes later...Now a token is returned given a list index or a pattern as the second optional argument.