zsh:funcs:nvim-man: Format nvim commands
This commit is contained in:
@@ -404,7 +404,13 @@ nvim-man() {
|
|||||||
command man -w "$1" >/dev/null || return
|
command man -w "$1" >/dev/null || return
|
||||||
|
|
||||||
# $MANPAGER would do the trick too but lines would be hard-wrapped.
|
# $MANPAGER would do the trick too but lines would be hard-wrapped.
|
||||||
nvim -u NORC +"runtime! plugin/man.vim | Man $1 | only | set scrolloff=999 | normal M"
|
nvim -u NORC +"
|
||||||
|
runtime! plugin/man.vim |
|
||||||
|
Man $1 |
|
||||||
|
only |
|
||||||
|
set scrolloff=999 |
|
||||||
|
normal M
|
||||||
|
"
|
||||||
else
|
else
|
||||||
command man "$@"
|
command man "$@"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user