Friday, September 25, 2009

Using VIM as a man page reader.

Just recording this old tip for posterity -- I'd lost it for a bit.

export MANPAGER="col -b | view -c 'set ft=man nomod nolist' -"


Sticking this in .bashrc or whatnot should let vim deal with man pages and things. Nice syntax highlighting and stuff.

export PAGER="col -b | view -c 'set nomod' -"


This wouldn't hurt for a regular pager too.

Original thread at Gentoo Forums.

No comments:

Post a Comment