Viewer for manpages, gnu info, perldoc, and php (unix/linux/cygwin)
VimL
Pull request Compare This branch is 1 commit ahead, 1 commit behind vim-scripts:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
autoload
doc
ftplugin
plugin
syntax
README

README

This is a mirror of http://www.vim.org/scripts/script.php?script_id=489

(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), php, and python help:.

    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

   PYTHON: (requires pydoc)
       :Man pprint.py

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)