I'm attempting to change the mapping of evil mode, and I have placed the code below in my .emacs
file.
When I start emacs some of the keys have been remapped, while others have not
These keys got remapped correctly:
e down
n back
s insert
t append
z undo
Z redo
c copy line
v paste
l previous word
These keys did not:
u up
i forward
y next word
I have changed more than what's listed here, but these are what I tested.
The relevant additions to .emacs
(define-key evil-motion-state-map "e" 'evil-next-line)
(define-key evil-motion-state-map "n" 'evil-backward-char)
(define-key evil-normal-state-map "z" 'undo)
(define-key evil-normal-state-map "Z" 'redo)
(define-key evil-normal-state-map "c" 'evil-yank)
(define-key evil-normal-state-map "v" 'evil-paste-after)
(define-key evil-motion-state-map "l" 'evil-backward-word-begin)
(define-key evil-motion-state-map "u" 'evil-previous-line)
(define-key evil-motion-state-map "i" 'evil-forward-char)
(define-key evil-motion-state-map "y" 'evil-forward-word-end)
u
,i
,a
, andy
? It's hard to expect people to help if they have to wade through a mass of unrelated code.