vim:ftplug:man: Move scrolling settings from zprofile

This commit is contained in:
2025-01-25 03:02:07 +01:00
parent 78917a686e
commit 2842bba50c
2 changed files with 8 additions and 1 deletions

View File

@@ -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:
" "

View File

@@ -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 \("