Skip to content

Instantly share code, notes, and snippets.

@kamitchell
Created April 23, 2017 00:03
Show Gist options
  • Save kamitchell/441afe165dd1e30bb238966c9bd1ff31 to your computer and use it in GitHub Desktop.
Save kamitchell/441afe165dd1e30bb238966c9bd1ff31 to your computer and use it in GitHub Desktop.
Man pages in Vim
" Put this in your .vimrc
" man pages
source $VIMRUNTIME/ftplugin/man.vim
" Don't let $MANPAGER get in the way
let $MANPAGER="cat"
# 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