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: Sesquipedalian on May 14, '09 08:13:25AM
This is nice, but it does assume that you are always connected to the net, and it does take a moment or two for the webpage to load.

Personally, I like to use the following. The output is in plain text rather than a pretty webpage, but it is instantaneous, requires no network connection, and gives you all the functions and convenience of TextEdit (or whatever other text editor you choose to use) while working with man pages.

Just add the following lines to .profile (or .bash_profile or whatever applies to your situation) in your home folder.

tman()
{
man "${1}" | col -b | open -f -a "TextEdit"
}


[ Reply to This | # ]
Yet another way to read beautifully formatted man pages
Authored by: broomdodger on May 14, '09 09:55:28AM

For those of who like to use vim:

vman()
{
man "${1}" | col -bx | view -
}



[ Reply to This | # ]
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 | # ]
Yet another way to read beautifully formatted man pages
Authored by: dgerrity on May 15, '09 08:49:00AM

Thanks for your suggestion -- you're right about the speed, and of course yours works offine. I added that too and now I have both.



[ Reply to This | # ]