Last active
January 15, 2025 23:11
-
-
Save adamency/dcd148c31b7ce7942961cbcad6f8b4db to your computer and use it in GitHub Desktop.
Vim/Neovim Manpager Alias
This file contains hidden or 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
alias vimman='vim +Man! -c "norm gO" -c "set nowrap" -c "%s/\v(-<\w>|--<\w+>)//n" -c "wincmd L" -c "vertical resize 60" -c "wincmd h"' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pipe any command output (e.g.
<command> --help
or<command> help
) tovimman
in order to display it as a manpage with advanced capabilities:n
/N
.