Kicking the Vim cursor key habit

" Unbind the cursor keys in insert, normal and visual modes.
for prefix in ['i', 'n', 'v']
  for key in ['<Up>', '<Down>', '<Left>', '<Right>']
    exe prefix . "noremap " . key . " <Nop>"
  endfor
endfor

Comments (4)

Why? The cursor keys work and are a lot more intuitive. Why unlearn a habit? If you'll answer "less motion for your hands" I suggest you assess your use of the keyboard and whether moving the hand a bit more is actually bad...

Jan. 4, 2009, 2:05 p.m. #
The target is not so much "less" motion but my inability to train myself to move my fingers to the arrow keys without twisting my wrist. Maybe I'll turn this off in a few months, we'll see.
Tuomas

Just the scripts I was looking for! Time to kick an old, uneffective habit.

April 7, 2009, 7:14 p.m. #
Mads Jakobsen

For me, using the arrowkeys, actually slows me down a lot. That is why, I am going to use this script.

Using Vim's other ways of movement, to put the cursor where you need it, seems way faster for me. Just a matter of remembering to use them,

Feb. 28, 2013, 10:12 a.m. #
Tornike Gomareli

Hi chris, I've checked your twitter account and You've written there that you are also working Python and Django.

My questions is that, are u using python and django development in VIM ? If you do so, please can u post your vim configurations for python and django development

June 21, 2017, 9 a.m. #