Wikia

Vim Tips Wiki

Script:489

Talk0
1,612pages on
this wiki
Revision as of 09:53, July 14, 2012 by JohnBot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Use this page to discuss script 489 ManPageView

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on vim.org).
  • This page may be out of date: check the script's vim.org page above, and its release notes.

Consider using echoerr instead of echo/sleepEdit

When manpageview needs to print a warning, it uses echo and then 'sleep 2' to make sure the user can see the message before it goes away. This two second delay is really annoying, as it cannot be skipped. Consider using echoerr and dropping the sleep -- then the user can hit enter to skip the message (before 2 seconds have elapsed).

extend manpageview-script with elinks-support for phpEdit

in autoload/manpageview.vim change

line 86 'til line 92 into:

if !exists("g:manpageview_pgm_php")
  if executable("elinks")
" call Decho("installed php help support via manpageview")
    let g:manpageview_pgm_php     = "elinks -dump http://www.php.net/"
    let g:manpageview_syntax_php  = "manphp"
    let g:manpageview_nospace_php = 1
    let g:manpageview_K_php       = "manpageview#ManPagePhp()"
  endif
" call Decho("installed php help support via manpageview")
  if executable("links")
    let g:manpageview_pgm_php     = "links -dump http://www.php.net/"
    let g:manpageview_syntax_php  = "manphp"
    let g:manpageview_nospace_php = 1
    let g:manpageview_K_php       = "manpageview#ManPagePhp()"
  endif
endif

p.s. it can be done much more clever but right now i don't feel like looking that up. Immeëmosol 16:14, December 27, 2010 (UTC)

Info support broken?Edit

I'm getting errors when trying to use this addon to view info documentation.

Specifically, running `:Man info.i` gives me

info: No menu item `(info)Top' in node `(dir)Top'.
info: No menu item `(info)Top' in node `(dir)Top'.
info: No menu item `(info)Top' in node `(dir)Top'.
***warning*** sorry, no manpage exists for <(info)Top>

I see some success if I delete these lines, which start at line 345 in the file autoload/manpageview.vim:

  " special exception for info {{{3
  if a:viamap == 0 && ext == "i"
   let s:manpageview_pfx_i = "(".manpagetopic.")"
   let manpagetopic        = "Top"
"   call Decho("top-level info: manpagetopic<".manpagetopic.">")
  endif

Deleting those lines will allow `:Man info.i` to work, but I still can't follow links in the displayed page.

I've not tried to use this addon to view info documentation before. I'm running an updated ubuntu 10.10, using the vim-gnome package.

There's a bit more info provided on StackExchange question. --Intui.ted 06:41, December 31, 2010 (UTC)

CommentsEdit

Around Wikia's network

Random Wiki