Function: evil-percentage-of-line
evil-percentage-of-line is an interactive and byte-compiled function
defined in evil-commands.el.
Signature
(evil-percentage-of-line &optional COUNT)
Documentation
Move the cursor to COUNT % of the width of the current line.
If no COUNT is given, default to 50%.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(evil-define-motion evil-percentage-of-line (count)
"Move the cursor to COUNT % of the width of the current line.
If no COUNT is given, default to 50%."
:type exclusive
(let ((line-length (- (line-end-position) (line-beginning-position)
(if evil-move-beyond-eol -1 0))))
(move-to-column (truncate (* line-length (or count 50)) 100))))