Function: evil-scroll-line-to-center
evil-scroll-line-to-center is an interactive and byte-compiled
function defined in evil-commands.el.
Signature
(evil-scroll-line-to-center COUNT)
Documentation
Scroll line number COUNT (or the cursor line) to the center of the window.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(evil-define-command evil-scroll-line-to-center (count)
"Scroll line number COUNT (or the cursor line) to the center of the window."
:repeat nil
:keep-visual t
(interactive "<c>")
(when count
(evil-save-column
(goto-char (point-min))
(forward-line (1- count))))
(recenter))