I'm using spacemacs in evil mode and I'd like to remap my escape key to the right arrow key (It's easily accessible for me due to a global remapping which is useful in another application). I had most success so far with either of these commands:
(global-set-key (kbd "<right>") (kbd "<escape>")) (global-set-key (kbd "<right>") 'evil-escape)
However, there is one thing I didn't manage to get right yet. When I press, for example 'd', it expects another key (like another 'd' to delete the whole line), but pressing won't abort that key sequence. How can I achieve this?