Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Yet another way to read beautifully formatted man pages' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Yet another way to read beautifully formatted man pages
Authored by: CarlRJ on May 14, '09 12:15:01PM

Actually, if you're using vim, put this into your .vimrc:

runtime! ftplugin/man.vim

and then, from inside vim, you can type ":Man whatever" (yes, the M must be uppercase) to get nice syntax-colored (you do have syntax on in your .vimrc, right?) man pages in a split window inside vim. Great for referring to documentation while writing scripts.

Oh, and if you haven't checked out a recent version of MacVim, definitely give it a whirl -- it's awesome (best version of the best text editor ever, and it's free).



[ Reply to This | # ]
Yet another way to read beautifully formatted man pages
Authored by: linux454 on May 15, '09 01:10:50PM

This is what I settled on using MacVim:

function tman {
man "${1}" | col -b | /usr/local/bin/gview - 1>/dev/null 2>&1
}



[ Reply to This | # ]