Giter Club home page Giter Club logo

manpageview's Introduction

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)




manpageview's People

Contributors

intuited avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

vexxor sidgwick

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.