From 5dac5e172efbb478cfbc7c57095be527065758f1 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Mon, 28 Feb 2022 21:19:42 +0800 Subject: Add gj gk mapping in evil-mode (emacs) --- .emacs.d/lisp/init-evil.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '.emacs.d/lisp') diff --git a/.emacs.d/lisp/init-evil.el b/.emacs.d/lisp/init-evil.el index 5bdd621..a3f5cc4 100644 --- a/.emacs.d/lisp/init-evil.el +++ b/.emacs.d/lisp/init-evil.el @@ -12,7 +12,10 @@ (evil-set-leader 'normal ",") (evil-set-undo-system 'undo-tree) (evil-define-key 'insert 'global - (kbd "C-【") 'evil-normal-state)) + (kbd "C-【") 'evil-normal-state) + (evil-define-key 'normal 'global + (kbd "gj") 'evil-next-visual-line + (kbd "gk") 'evil-previous-visual-line)) (use-package evil-collection :after evil -- cgit v1.2.3