sponsor Vim development Vim logo Vim Book Ad

ManPageView : Viewer for manpages, gnu info,  perldoc, and php (unix/linux/cygwin)

 script karma  Rating 592/249, Downloaded by 9252  Comments, bugs, improvements  Vim wiki

created by
Charles Campbell
 
script type
utility
 
description
(Unix/Linux)

The <manpageview.vim> script allows vim to be used as a manpage viewer while one is inside vim.  Coupled with the tip "Using vim as a man-page viewer under Unix", available by clicking on vimtip#167, <manpageview.vim> gives a complete manpage viewing solution using vim!

The Man command will accept four formats for looking up a man page:

    :Man topic
    :Man topic booknumber
    :Man booknumber topic
    :Man topic(booknumber)

In addition, while in normal mode and with the cursor on some topic (system function) that you wish to look up, press the "K" key to invoke the manpage viewer.

The tip vimtip#167 addresses setting up man so that it invokes vim from the command line.

ManPageView supports display of info, perldoc (both system and embedded) help and php files.

    INFO
        :Man info.i

    PERL  (requires the perldoc program)
        :Man printf.pl
        :Man cos.pl
        :Man sprintf.pl

    PHP  (requires the links program)
        :Man printf.php

ManPageView "knows" what display tool to invoke by examining the suffix.  For perl, for example, g:manpageview_pgm_pl is (by default) initialized to perldoc.  Similar support is available for custom initialization, overriding the K map, providing a standard prefix or suffix, and specialized syntax highlighting.


Thank you for rating this script!

(alpha/beta version available at http://mysite.verizon.net/astronaut/vim/index.html#MANPAGEVIEW)



 
install details
vim manpageview.vba.gz
   :so %
   :q            
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
manpageview.vba.gz 22 2008-11-26 7.0 Charles Campbell Improved handling of non-existing manpages.
No generation of K map for "" strings.

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo