Function: evil-scroll-start-column
evil-scroll-start-column is an interactive and byte-compiled function
defined in evil-commands.el.
Signature
(evil-scroll-start-column)
Documentation
Scroll the window to position the cursor at the start (left side) of the screen.
Warn if hscroll-margin > 0, as cursor will be hscroll-margin chars from
the left edge.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(evil-define-command evil-scroll-start-column ()
"Scroll the window to position the cursor at the start (left side) of the screen.
Warn if `hscroll-margin' > 0, as cursor will be `hscroll-margin' chars from
the left edge."
:repeat nil
:keep-visual t
(interactive)
(let ((initial-column (current-column))
(initial-hscroll (window-hscroll)))
(when (< 0 hscroll-margin)
(evil-echo "%s: hscroll-margin = %d" this-command hscroll-margin))
(evil-scroll-column-right (- initial-column initial-hscroll hscroll-margin 1))))