Wikia

Vim Tips Wiki

Changes: Script:489

Edit

Back to page

(adjust Template:ScriptComments to remove id as no longer needed; minor tweaks)
(Change <tt> to <code>, perhaps also minor tweak.)
 
Line 2: Line 2:
   
 
==Consider using echoerr instead of echo/sleep==
 
==Consider using echoerr instead of echo/sleep==
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).
+
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 php==
 
==extend manpageview-script with elinks-support for php==
Line 52: Line 52:
 
Deleting those lines will allow `:Man info.i` to work, but I still can't follow links in the displayed page.
 
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.
+
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 [http://unix.stackexchange.com/questions/5267/viewing-info-documentation-with-vim|this StackExchange question]. --[[User:Intui.ted|Intui.ted]] 06:41, December 31, 2010 (UTC)
 
There's a bit more info provided on [http://unix.stackexchange.com/questions/5267/viewing-info-documentation-with-vim|this StackExchange question]. --[[User:Intui.ted|Intui.ted]] 06:41, December 31, 2010 (UTC)

Latest revision as of 09:53, July 14, 2012

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