News for hackers. Stuff that matters.
Re:Here is why vim uses the hjkl keys as arrow keys by cgmorton on Friday March 09, 2012 @01:38PM (#3685364)
Another excellent trick I read somewhere is to map 'jj' or 'jk' to esc when in insert mode (so 'inoremap jj <ESC>'). As a digraph they never occur in a natural language, so you'll never type it accidentally. And you can hit it on the home row easy-peasy.

Although personally I type in Colemak, I still use this, just with 'yy' instead. To be honest, it's a barely noticeable slow-down but it's much less stressful for my hands.

There are really a lot of ways to do this. See: http://vim.wikia.com/wiki/Avoid_the_escape_key

Re:Here is why vim uses the hjkl keys as arrow keys by mgedmin on Friday March 09, 2012 @05:27PM (#3686261)
> As a digraph they never occur in a natural language

I wonder how Dijkstra would react to that statement.

Re:Here is why vim uses the hjkl keys as arrow keys by aptwebapps on Saturday March 10, 2012 @12:07AM (#3687100)
Or all those people whose handle is JJ?
Re:Here is why vim uses the hjkl keys as arrow keys by comex on Saturday March 10, 2012 @01:46AM (#3687266)
Re:Here is why vim uses the hjkl keys as arrow keys by jedbrown on Saturday March 10, 2012 @09:49AM (#3687847)
It's common to use double letters (ii, jj, kk) as inner indices when writing tiled multi-dimensional array code. Regardless of whether you think that is a good convention, you should be preserving that convention if you are editing legacy code that was written that way.