Live data from Hacker News

Two Simple Steps Helped Me Learn Vim

adamdelong.com

11–20 of 92 posts

Re: Two Simple Steps Helped Me Learn Vim

#11

Here are some more tips: - disable arrow keys - turn relative numbers on by default - force yourself to only move vertically using relative numbers - force yourself to only move horizontally using [fF,;]

Why would you want to disable arrow keys?

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

#17
The biggest thing that helped me to learn to use vim fluently by building up muscle memory (and making commands automatic) was playing Vim Adventures, a browser based adventure game that gradually teaches you vim commands: http://vim-adventures.com/

I haven't tried the full (paid) version yet, but the demo was enough to get me moving around text quickly. Now I finally understand why people use this crazy thing. :)

Also, if you really want to fly through text, try out https://github.com/Lokaltog/vim-easymotion

Re: Two Simple Steps Helped Me Learn Vim

#18
There is finally a good 'first' book about learning Vim, that just came out this week: Pro Vim

www.amazon.com/Pro-Vim-Mark-McDonnell/dp/1484202511/

He sets you up with a reasonable .vimrc to start, which I think it key to get over the bad defaults. He starts at the beginning, and takes you well beyond what vimtutor covers.

I'm working my way through it now.

I'd also suggest vimcheatsheet.com, for something to hang on the wall. I just don't get the cheatsheets that have a keyboard, since I don't really think about the location of the keys I'm typing.

Re: Two Simple Steps Helped Me Learn Vim

#19
Step one should be to get it out of your head that vim is hard or hard to learn. Sitting with my son, years ago, I got him doing simple editing of files for me proficiently in less than five minutes. Deleting words and lines and selecting whole paragraphs and sections. Copying and pasting.

He was 15. vim is easy.

Post reply on HN