문제

I would like to map j k motions in evil to be gj and gk respectively. This is a common remapping people usually do in vim. How can I do that in Emacs. I guess I just need to find how these Evil functions that correspond to gj and gk motions are named.

도움이 되었습니까?

해결책

The functions you're looking for are evil-next-visual-line and evil-previous-visual-line. You can bind 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)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top