Home

Awesome

man.vim

View man pages in vim. Grep for the man pages.

Features and Usage

Viewing man pages
When editing nroff files
When inside a man page buffer
Using from the shell

You can use vim-man from the shell (instead of standard man program) using the following script:

#! /bin/sh
vim -c "Man $1 $2" -c 'silent only'

Save it in /usr/bin/ as a file named viman, give it execution permission with:

$ chmod +x /usr/bin/viman

Then from your shell you can read a DOC with:

$ viman doc

Or you can use the alias alias man=viman so you can do (as usual):

$ man doc
Searching/grepping man pages

Also see About Mangrep

Defining mappings in .vimrc

No mappings are defined by default.

About Mangrep

This feature is still in beta. Please help fix the issues.

Mangrep populates quickfix list with the results. While they should be accurate, you might experience hiccups when opening those results.

Running Mangrep:

Installation

Just use your favorite plugin manager.

If you were previously using man.vim that comes with vim by default, please remove this line runtime! ftplugin/man.vim from your .vimrc. It's known to be causing issues with this plugin.

Contributing

Contributing and bug fixes are welcome. If you have an idea for a new feature please get in touch by opening an issue so we can discuss it first.

Credits

Vim by default comes with man page viewer, as decribed in find-manpage. This work is the improvement of vim's original man page plugin. The list of improvements is here.

These people created and maintain (or maintained) man.vim that comes with vim itself:

License

Vim license, see :help license.