Using vim as a man pager
Posted: July 15, 2016 Filed under: Linux command line, Uncategorized Leave a commenthttps://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’ -\””