aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-02-28 21:19:42 +0800
committerGuangxiong Lin <[email protected]>2022-02-28 21:19:42 +0800
commit5dac5e172efbb478cfbc7c57095be527065758f1 (patch)
treea59bd3df13f765abaacab32487fec5233f782ae5
parent1366eb5761081ec2af7771c06891e68fa10ce6cf (diff)
downloaddotfiles-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.el5
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