Check out my free CGI course [easystreet.com].
Grant Secretary and Steering Committee member for Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.
If you're primarily a Perl hacker and don't use C much, you might find it annoying when you hit 'K' in command mode. That's because VIM runs something like this:
nmap K:Map <cword><cr>
I've just added the following to my
noremap K:!perldoc <cword> <bar><bar> perldoc -f <cword><cr>
Now when you type 'K' in command mode, it will call up the appropriate perldoc, if possible.
I really should have added that to Perl Hacks. Damn.
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 :)
Silence is Evil [easystreet.com]
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 scollecting 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.
Silence is Evil [easystreet.com]
Re: (Score:1)