I admit that I'm not an expert vim
user so forgive me not providing previous attempts!
I wish to overwrite/remap the basic vi
/vim
(and gvim
) "cursor keys" hjkl to the ordinary "gamer layout" wasd (w-up, a-left, s-down, d-right). Moreover: I know that "w", "a", "s" and "d" are important keys in vim
so I came up with the idea to remap hjkl to ALT + wasd.
Have to configure .vimrc? Or is there some plugin? Can you help me?
Map your Alt + aswd to hjkl; in your
.vimrc
I think adding this to your .vimrc should do the trick.
According to zarak's and dNitro's solutions, in my case adding
to
.vimrc
solved the problem.Because in my case
resulted ^]w ^]a ^]s and ^]d.
Thanks a lot!