Peng Yu wrote:
>> export PERLDOC_PAGER="sh -c \"col -b -x| vim -R -c 'set ft=man' - \"<"
>>
> Thanks, Christian.
>
> Using the above export, I tried perldoc -f open. But the following
> line is not showing correctly. I think that probably "ft" be changed
> to something other than man. Are you aware of the alternative?
>
> These various prefixes correspond to the 4mfopen24m(3) modes of "r",
>
>
Hello, Peng!
You could try manpageview
(http://www.drchip.org/astronaut/vim/index.html#MANPAGEVIEW).
ex. :Man sprintf.pl
One may use the shell, too:
gvim -c "Man $*" -c "silent! only" sprintf.pl
You can wrap the shell command above into a function:
function man
{
gvim -c "Man $*" -c "silent! only"
}
then man sprintf.pl will bring up the manpage for Perl's sprintf()
function. When editing a Perl script, a "K" pressed in normal mode
while atop something that perldoc knows about will bring up the manpage
for it.
Regards,
Chip Campbell
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Tuesday, August 7, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment