I was having some problems getting manpageview to work on Windows:


For  :Man cat   I got:

   Error detected while processing function <SNR>29_ManPageView:
   line  282:
   E485: Can't read file c:/DOCUME~1/Owner/LOCALS~1/Temp/VIo20F.tmp
   Error detected while processing
C:/cygwin/home/Owner/vimfiles/syntax/man.vim:
   line   71:
   E174: Command already exists: add ! to replace it
   ***warning*** no manpage exists for <cat>


I then found that a lot of the default runtime syntax scripts started
failing also (i.e. ruby.vim, tcl,vim, etc.) when trying to open any
.vim file.

So I changed syntax/man.vim line 71 to be   command! ....  temporarily


Looking at C:/tmp  I see:

   /home/Owner/vimfiles $ ls C:/tmp/V*
   C:/tmp/VIo21B.tmp'  C:/tmp/VIo21D.tmp'  C:/tmp/VIo21F.tmp'
   C:/tmp/VIo21C.tmp'  C:/tmp/VIo21E.tmp'  C:/tmp/VIo220.tmp'


I turns out I had 'shellxquote'  set to '   which is causing a problem
somewhere.  It seems to be related to 'tempname()', but when I tried
creating a file this way manually, it didn't have the problem with the
trailing quote chars in the filename.


Anyway, setting shellxquote to empty, I got:

   shell returned 1

   Error detected while processing
C:/cygwin/home/Owner/vimfiles/syntax/man.vim:
   line   87:
   E254: Cannot allocate color navyblue
   E254: Cannot allocate color navyblue


I changed 'navyblue' to 'blue'.  I don't know why navyblue isn't on Windows.

This also fixed the above problem where errors were occuring in all
the syntax files, since the   delcommand Hilink   wasn't getting
executed because of the 'navyblue' failure.

It also fixed another error when running   :Man date   again while the
new display window was still open gave:

   Error detected while processing function <SNR>6_BMRemove:
   line    9:
   E329: No menu "[No file] (50)   "
   Error detected while processing
C:/cygwin/home/Owner/vimfiles/syntax/man.vim:
   line   71:
   E174: Command already exists: add ! to replace it
   Error detected while processing function <SNR>29_ManPageView:
   line  338:
   E95: Buffer with this name already exists



On 6/26/06, Charles E Campbell Jr <[EMAIL PROTECTED]> wrote:
Trent Michael Gamblin wrote:

> I'm having trouble getting the Man command working with Vim.

May I suggest trying out manpageview, which implements (IMHO) an
improved :Man command.
Its available at:

   http://mysite.verizon.net/astronaut/vim/index.html#VimFuncs (see "Man
Page Viewer")

and at:

   http://vim.sourceforge.net/scripts/script.php?script_id=489

Regards,
Chip Campbell


Reply via email to