How to match j and k with gj and gk in Emacs Evil-mode?

I would like to display the motions j k in evil as gj and gk respectively. This is the usual reassignment that people usually do in vim. How can I do this in Emacs. I think I just need to find what these Evil functions are called, corresponding to the movements gj and gk .

+6
source share
1 answer

The functions you are looking for are evil-next-visual-line and evil-previous-visual-line . You can associate them with:

 (define-key evil-normal-state-map (kbd "j") 'evil-next-visual-line) (define-key evil-normal-state-map (kbd "k") 'evil-previous-visual-line) 
+10
source

All Articles