aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/init-evil.el
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-05-08 11:31:03 +0800
committerGuangxiong Lin <[email protected]>2022-05-08 11:31:03 +0800
commit8d2ab0c1de2aa99fa4f83bb0d70ab94f9037039b (patch)
treee695ce030f064a89290b23251d650fd92635376c /.emacs.d/lisp/init-evil.el
parent076f80ceab2dd71fd751a0a82b953c0af1c14d6e (diff)
downloaddotfiles-8d2ab0c1de2aa99fa4f83bb0d70ab94f9037039b.tar.gz
dotfiles-8d2ab0c1de2aa99fa4f83bb0d70ab94f9037039b.tar.bz2
dotfiles-8d2ab0c1de2aa99fa4f83bb0d70ab94f9037039b.zip
Use jk to move visually in evil visual mode
Diffstat (limited to '.emacs.d/lisp/init-evil.el')
-rw-r--r--.emacs.d/lisp/init-evil.el5
1 files changed, 5 insertions, 0 deletions
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