Created
April 23, 2017 00:03
-
-
Save kamitchell/441afe165dd1e30bb238966c9bd1ff31 to your computer and use it in GitHub Desktop.
Man pages in Vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Put this in your .vimrc | |
" man pages | |
source $VIMRUNTIME/ftplugin/man.vim | |
" Don't let $MANPAGER get in the way | |
let $MANPAGER="cat" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Man pages in Vim | |
export MANPAGER="/bin/sh -c \"col -b | vim -c 'set ft=man ts=8 sw=4 nomod nolist nonu noma' -\"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment