News for hackers. Stuff that matters.
Re:Two Simple Steps Helped Me Learn Vim by madeofpalk on Wednesday December 10, 2014 @08:01AM (#8728913)
Why would you want to disable arrow keys?
Re:Two Simple Steps Helped Me Learn Vim by beaumartinez on Wednesday December 10, 2014 @08:08AM (#8728934)
To to keep your fingers on the home row, in order to have better access to all the other keys in your keyboard.

Having your fingers on the arrow keys mean your hand has to travel that much further to type the other keys—making you slower.

Re:Two Simple Steps Helped Me Learn Vim by AlexeyBrin on Wednesday December 10, 2014 @09:06AM (#8729166)
I've always wondered if the "disable the arrow key" advice given to every VIM novice makes any sense for the user of a 11" - 13" laptop. It was probably a good advice for a classical keyboard, but I find the arrow keys quite handy when I work on a small laptop keyboard.
Re:Two Simple Steps Helped Me Learn Vim by Morgawr on Wednesday December 10, 2014 @10:40AM (#8729694)
I started seriously using vim around the time I started coding on the go with a very old eeePC (the first model, the absurdly small one). This was around 5-6 years ago probably. Back then I had already used vim before but only as a "normal" text editor, just go into insert mode and move around with arrows.

I was forced to use vim because that old piece of crap PC (I still love it though) wasn't powerful enough to run anything, really, and the screen was super small. I noticed using arrows key was super uncomfortable because yes, they were closer to the actual home row but they were also smaller, clunkier and harder to press. So I decided to force myself to use hjkl and disable arrow keys. It was definitely one of the best decisions of my (coding) life. Just comfortably resting your hands on the home row (either laptop keyboard or normal one) simply makes your typing more relaxed and after the couple of weeks (months?) struggling with left/right (up and down was fairly easy) you really stop noticing it.

Funnily enough, I re-enabled arrow keys a year or so ago and I haven't really felt the temptation to use them anymore.

DISCLAIMER: This turned me into a super slow and awkward typist when I am trying to work on text in an editor that does not support vim mode (like google docs for example). I have several documents around with jjjkkjhjjhjjllljh unfortunately.

Re:Two Simple Steps Helped Me Learn Vim by Syssiphus on Wednesday December 10, 2014 @08:48AM (#8729091)
It's not so much about speed. It's about comfort.
Re:Two Simple Steps Helped Me Learn Vim by throw_away on Wednesday December 10, 2014 @02:49PM (#8731257)
I would argue that it's best to disable arrow keys in insert mode only. This is the real problem here. By using arrow keys in insert mode, the novice ends up using vim just like a glorified notepad, and never truly understanding the different modes. Since they aren't ever going back to command mode, they never consider using more advanced movement operators, and then they never realize the power of composing motions and commands.

Whenever I start teaching someone vim, I always add this to their .vimrc:

    inoremap <Left> <nop>
    inoremap <Right> <nop>
    inoremap <Up> <nop>
    inoremap <Down> <nop>
This way, arrows still work as expected in command mode, but not in insert mode. The novice will learn to only insert in insert mode, and move and operate in command mode.