Variable: evil-want-Y-yank-to-eol
evil-want-Y-yank-to-eol is a customizable variable defined in
evil-vars.el.
Value
nil
Documentation
Whether Y yanks to the end of the line.
The default behavior is to yank the whole line, like Vim.
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-vars.el
(defcustom evil-want-Y-yank-to-eol nil
"Whether `Y' yanks to the end of the line.
The default behavior is to yank the whole line, like Vim."
:group 'evil
:type 'boolean
:initialize #'evil-custom-initialize-pending-reset
:set #'(lambda (sym value)
(set-default sym value)
(evil-add-command-properties
'evil-yank-line
:motion (if value
'evil-end-of-line-or-visual-line
'evil-line-or-visual-line))))