I read a lot of manpages, and I like to have power and flexibility when doing so. Luckily, Vim is up to the task:
My primary Desktop is a modern Linux distro, so it uses utf-8 as the locale. I added the following to my bashrc (actually zshrc, but this should work for bash as well).
function man
{
/usr/bin/man $* | col -bp | iconv -c | view -c 'set ft=man nomod nolist' -
}
If you're on an older system that doesn't use utf-8 try something like this instead:
function man
{
/usr/bin/man $* | col -b | view -c 'set ft=man nomod nolist' -
}
Note that the above functions may need to modified for your shell.
Wednesday, February 13, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment