Last Updated: February 25, 2016
·
543
· marchibbins

Disable arrow keys

Map the arrow keys to do nothing, stick with HJKL and keep your hands in the same place!

The following covers all modes:

noremap  <Up> ""
noremap! <Up> <Esc>
noremap  <Down> ""
noremap! <Down> <Esc>
noremap  <Left> ""
noremap! <Left> <Esc>
noremap  <Right> ""
noremap! <Right> <Esc>