NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Sweet! (Score:1)
Perl specific remapping (Score:1)
If filetype plugin is turned on this also works:
autocmd FileType perl :noremap K :!perldoc <cword> <bar><bar> perldoc -f <cword><cr>
And then K should still work as it did before when working with non-perl sources
Re: (Score:2)
Nice point! I do have the filetype plugin enabled. Thanks :)
perl-support.vim (Score:1)
http://vim.sourceforge.net/scripts/script.php?script_id=556 [sourceforge.net]
The canonical way to do this (Score:1)
If the
perldoc -f || perldocbehaviour matters, the preferrable way to do it is to plug a shell script that works that way intokeywordprg, which offers the bonus that you will have it available on the shell as well. If you really must, though, you can do it as a less than pretty one-liner:collecting such tricks? (Score:2)
As a start I added this one to the perl5 wiki on TPF [perlfoundation.org]
what about module name (Score:1)
Ala::Bala
(two colons)
Re: (Score:1)
Then vim will consider colons word characters for the purposes of cword.
Re: (Score:2)
Oh, I have something analogous to that embedded in my vim stuff. I stole that trick from Damian.
Re: (Score:1)