Skip to content

Instantly share code, notes, and snippets.

@demicuz
Created June 10, 2022 01:41
Show Gist options
  • Save demicuz/94ee8ddccfc540342c10a4444a80761d to your computer and use it in GitHub Desktop.
Save demicuz/94ee8ddccfc540342c10a4444a80761d to your computer and use it in GitHub Desktop.
Using Vim as a pager for man
#!/bin/bash
text=$(man "$@") && echo "$text" | vim -R +":set ft=man nolist nonu fdm=indent sw=7" -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment