vim:ftplug:man: Move scrolling settings from zprofile
This commit is contained in:
@@ -9,6 +9,13 @@ setlocal nospell
|
|||||||
" wrapped by vim (i.e. almost all of them).
|
" wrapped by vim (i.e. almost all of them).
|
||||||
setlocal signcolumn=no
|
setlocal signcolumn=no
|
||||||
|
|
||||||
|
" Make scrolling easier/more reactive through a big scrolloff
|
||||||
|
setlocal scrolloff=999
|
||||||
|
|
||||||
|
" Position cursor in the middle when launching so that scrolling down starts
|
||||||
|
" immediately
|
||||||
|
normal M
|
||||||
|
|
||||||
" ------------------------------------------------------------------------------
|
" ------------------------------------------------------------------------------
|
||||||
" From :h :Man:
|
" From :h :Man:
|
||||||
"
|
"
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ export LESS
|
|||||||
|
|
||||||
# Use neovim's man plugin as manpager
|
# Use neovim's man plugin as manpager
|
||||||
(( ! $+commands[nvim] )) || \
|
(( ! $+commands[nvim] )) || \
|
||||||
export MANPAGER='nvim +"Man! | set scrolloff=999 | normal M"'
|
export MANPAGER="nvim '+Man!'"
|
||||||
|
|
||||||
# NOTE: This is used in keys.zsh for the ALT_C widget
|
# NOTE: This is used in keys.zsh for the ALT_C widget
|
||||||
FZF_DEFAULT_COMMAND_FALLBACK="find -L . -mindepth 1 \("
|
FZF_DEFAULT_COMMAND_FALLBACK="find -L . -mindepth 1 \("
|
||||||
|
|||||||
Reference in New Issue
Block a user