hx6vda
Last Updated: February 25, 2016
·
1.33K
· apeschel

Reading Manpages with Vim

Vim comes packaged with a plugin that works well for reading manpages. It provides nice syntax highlighting and the ability to navigate through pages. If the cursor is over a link, use ctrl-] to go to that man page, and ctrl-t to go to the previous page.

You can add the following to your bashrc or zshrc to use Vim as a replacement for the man program.

# Read man pages with vim                                                                                                                                     
man () { vim -c "Man $*" -c "only" } 

1 Response
Add your response

2862

It doesn't on Mac OS

over 1 year ago ·