Jagpreet wrote:
> Hi,
> I have downloaded manpageviewer plugin which allows vim to see man
> pages inside vim with Man command.
> further as suggested by Dr. Chip, I have this function defined in
> my .bashrc
>
> function man
> {
> vim -c "Man $*" -c "silent! only"
> }
>
> but when I try to see any man page the error display is
>
> Reformatting page. Please Wait... done
> Broken Pipe
> ***warning*** sorry, no manpage exists for <ls>
>
>
Sounds like the command being passed to your shell is not working. I
myself use
function man
{
gvim -c "Man $*" -c "silent! only"
}
and that works fine for me. So, to determine what's going on with your
setup:
* enable debugging for manpageview:
o get the Decho.vim plugin if you don't already have it:
http://vim.sourceforge.net/scripts/script.php?script_id=120
-or-
http://mysite.verizon.net/astronaut/vim/index.html#DECHO
(this latter one is always the most up-to-date)
o vim manpageview.vim
:DechoOn
:wq
(editing the file and typing :DechoOff will turn the debugging off)
* Please send me a copy of the text in the "Decho Tab" .
FYI: there should a line such as
|(nrml) exe silent keepjumps r!man 'ls'
which I got by enabling debugging and doing a "man ls".
This command is what is sent to your o/s (which is what, by the way?);
normally
aliases and expansions aren't applied/made to it so the "man" command is
simply the one
found on your PATH. It'd be good to know what the basic command is
doing; to avoid the
aliasing and expanding, just use the full path; something like
/usr/bin/man 'ls'
If you're using windows+cygwin, then check your vim/shell settings.
I've found the following useful:
set shell=bash
set shq=
set sxq=\"
set ssl
set shcf=-c
set sp=>&
Regards,
Chip Campbell
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---