I have asked a question here about what should I add to .vimrc
to map ALT + a to "h"; ALT + s to "j" and so on. The solution is adding the following to .vimrc
:
noremap <Esc>a h
noremap <Esc>s j
noremap <Esc>w k
noremap <Esc>d l
Now, my problem is, that this solution does not work in INSERT mode
(but works in NORMAL mode
). Using imap
results like typing h,j,k,l, iunmap
results error.
How to set .vimrc
to make ALT + wasd works like hjkl "cursor keys" also in INSERT mode
?