Skip to content

Instantly share code, notes, and snippets.

@brianstorti
Created February 22, 2013 21:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianstorti/5016559 to your computer and use it in GitHub Desktop.
Save brianstorti/5016559 to your computer and use it in GitHub Desktop.
use vim as man-page viewer
man() {
PAGER="/bin/sh -c \"col -b | vim -R -c 'set ft=man' -\"" command man $@
}
@HaleTom
Copy link

HaleTom commented Aug 19, 2017

Generally "$@" should be quoted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment