Hacker News new | past | comments | ask | show | jobs | submit login

It may seem small, but adding these lines to my vimrc have entirely broken my habit of scrolling with the arrow keys.

    map <up> <nop>
    map <down> <nop>
    map <left> <nop>
    map <right> <nop>
    imap <up> <nop>
    imap <down> <nop>
    imap <left> <nop>
    imap <right> <nop>
It may seem irritating at first, but in the end I argue it's worth it.



That's a good way of training yourself, I weened myself off the left-pinky control key by doing the same thing. I now press it with my left thumb - which is easy on my new Kinesis keyboard. Moving your hands off home row to hit arrow keys also slows you down. It adds about 500ms latency to your workflow every time you do it.


I actually trained myself to use the arrow keys because of my RSI. Moving my hands away from the home row slowed my typing down a touch and alleviates some of the constant pressure on the fingertips.

But now that my RSI is manageable as well (two words: wrist breaks) perhaps I should try going back to hjkl.


Emacs: (for easy copy-paste into your .emacs)

  (global-unset-key [left])
  (global-unset-key [right])
  (global-unset-key [up])
  (global-unset-key [down])
  (global-unset-key [prior])
  (global-unset-key [next])
  (global-unset-key [home])
  (global-unset-key [end])




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: