Using vim as a man pager

https://zameermanji.com/blog/2012/12/30/using-vim-as-manpager/

export MANPAGER=”col -b | vim -c ‘set ft=man ts=8 nomod nolist nonu’ -c ‘nnoremap i <nop>’ -”

export MANPAGER=”col -b | vim -c ‘set ft=man ts=8 nomod nolist nonu noma’ -”

For gnu man:

export MANPAGER=”/bin/sh -c \”col -b | vim -c ‘set ft=man ts=8 nomod nolist nonu noma’ -\””

 

Advertisements