0

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 "$"))

Your Answer

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

Browse other questions tagged or ask your own question.