Disable arrow keys in Vim

PUBLISHED ON JUN 15, 2012

I know this information can be found in n+1 other places but I will write it here anyway to be able to access it easily later.

One of the most important things when starting to use Vim as your editor is to drop all old habits! Therefore we will disable the arrow keys so that you are forced to use h, j, k, l to navigate. So without further ado here are the changes one should add to their .vimrc file.

noremap "
noremap!
noremap ""
noremap!
noremap ""
noremap!
noremap ""
noremap!

Happy viming!