" 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

§

Tags: Computer GNU/Linux Hacks
Planets: ALUG UWCS WUGLUG Debian

§

Two comments

  1. 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...

    Martin F. Krafft

    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.

    lamby

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

    Tuomas

Reply

§