diff options
author | Guangxiong Lin <[email protected]> | 2022-02-28 21:19:42 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-02-28 21:19:42 +0800 |
commit | 5dac5e172efbb478cfbc7c57095be527065758f1 (patch) | |
tree | a59bd3df13f765abaacab32487fec5233f782ae5 | |
parent | 1366eb5761081ec2af7771c06891e68fa10ce6cf (diff) | |
download | dotfiles-5dac5e172efbb478cfbc7c57095be527065758f1.tar.gz dotfiles-5dac5e172efbb478cfbc7c57095be527065758f1.tar.bz2 dotfiles-5dac5e172efbb478cfbc7c57095be527065758f1.zip |
Add gj gk mapping in evil-mode (emacs)
-rw-r--r-- | .emacs.d/lisp/init-evil.el | 5 |
1 files changed, 4 insertions, 1 deletions
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 |