Slash Boxes
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

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • autocmd FileType perl setlocal keywordprg=perldoc

    If the perldoc -f || perldoc behaviour matters, the preferrable way to do it is to plug a shell script that works that way into keywordprg, 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:

    autocmd FileType perl setlocal keywordprg=sh\ -c\ 'perldoc\ -f\ \$1\ \|\|\ perldoc\ \$1'\ --