From 8d2ab0c1de2aa99fa4f83bb0d70ab94f9037039b Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sun, 8 May 2022 11:31:03 +0800 Subject: Use jk to move visually in evil visual mode --- .emacs.d/lisp/init-evil.el | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.emacs.d/lisp/init-evil.el') diff --git a/.emacs.d/lisp/init-evil.el b/.emacs.d/lisp/init-evil.el index 3ea1728..ed3f58f 100644 --- a/.emacs.d/lisp/init-evil.el +++ b/.emacs.d/lisp/init-evil.el @@ -27,6 +27,11 @@ (kbd "k") 'evil-previous-visual-line (kbd "gj") 'evil-next-line (kbd "gk") 'evil-previous-line) + (evil-define-key 'visual text-mode-map + (kbd "j") 'evil-next-visual-line + (kbd "k") 'evil-previous-visual-line + (kbd "gj") 'evil-next-line + (kbd "gk") 'evil-previous-line) (gx/diminish 'evil-mode)) ;; evil-collection -- cgit v1.2.3