Vim Tips Wiki
Advertisement

Use this page to discuss script 489 489

  • 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.

extend manpageview-script with elinks-support for php

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?

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.

--Intui.ted 06:41, December 31, 2010 (UTC)

Advertisement