Merge pull request #542 from avsej/yank-to-end-of-line
prelude-evil: add 'nmap Y y$' equivalent
This commit is contained in:
commit
fbdb60a8ee
1 changed files with 7 additions and 0 deletions
|
@ -62,6 +62,13 @@
|
||||||
(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 prelude-yank-to-end-of-line ()
|
||||||
|
"Yank to end of line."
|
||||||
|
(interactive)
|
||||||
|
(evil-yank (point) (point-at-eol)))
|
||||||
|
|
||||||
|
(define-key evil-normal-state-map
|
||||||
|
(kbd "Y") 'prelude-yank-to-end-of-line)
|
||||||
|
|
||||||
;; Scrolling
|
;; Scrolling
|
||||||
(defun prelude-evil-scroll-down-other-window ()
|
(defun prelude-evil-scroll-down-other-window ()
|
||||||
|
|
Loading…
Reference in a new issue