Last Updated: February 25, 2016
·
250
· anthonysutardja

Read manpages with Vim

Include this in your .bash_profile

export MANPAGER="col -b | vim -c 'set ft=man ts=8 colorcolumn=0 nomod nolist nonu noma' -"

Now, when you open up any manpage (e.g. man grep), it'll open up in vim with syntax highlighting!