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.

closed as off-topic by Jeff Schaller, jimmij, Raphael Ahrens, Anthon, Archemar Jul 5 '16 at 11:10

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question has been posted on multiple sites. Cross-posting is strongly discouraged; see the help center and community FAQ for more information." – Jeff Schaller, jimmij, Raphael Ahrens, Anthon, Archemar


On most installation I have come across:

  • ALT-something

is the same as:

  • ESC (release after press) something

So, vim commands are always "ALT-Prefixed".

But, as you have found out in the meantime, there is a way to specify this key combination in the vimrc.


Question had been solved at stackoverflow.com:


noremap <Esc>a h
noremap <Esc>s j
noremap <Esc>w k
noremap <Esc>d l

to .vimrc solved the problem.

Not the answer you're looking for? Browse other questions tagged or ask your own question.