1

I am trying to rebind j, k key as well as capital E, B and Y, but cannot get them to work. Any pointers?

I put this into my .spacemacs (in dotspacemacs/user-config):

(evil-define-key 'normal key-translation-map (kbd "j") (kbd "gj"))
(evil-define-key 'normal key-translation-map (kbd "k") (kbd "gk"))
(evil-define-key 'normal key-translation-map (kbd "Y") (kbd "y$"))
(evil-define-key 'normal key-translation-map (kbd "B") (kbd "^"))
(evil-define-key 'normal key-translation-map (kbd "E") (kbd "$"))
0

Adapted from this somewhat related answer, here's the pattern you should follow:

(evil-define-key 'normal global-map (kbd "B") (kbd "^"))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.