prelude-evil: add 'nmap Y y$' equivalent

This commit is contained in:
Sergey Avseyev 2014-05-17 12:04:06 +03:00
parent bfeb85f16d
commit 1b7a80d8b7

View file

@ -62,6 +62,11 @@
(evil-ex-define-cmd "linum" 'linum-mode) (evil-ex-define-cmd "linum" 'linum-mode)
(evil-ex-define-cmd "Align" 'align-regexp) (evil-ex-define-cmd "Align" 'align-regexp)
(defun yank-to-end-of-line ()
"Yank to end of line."
(interactive)
(evil-yank (point) (point-at-eol)))
(define-key evil-normal-state-map "Y" 'yank-to-end-of-line)
;; Scrolling ;; Scrolling
(defun prelude-evil-scroll-down-other-window () (defun prelude-evil-scroll-down-other-window ()