Earlier quoted context omitted.
> one hours is defiantly enough to get to know the main Vim bindings I'm going to do an experiment. I've been struggling with Vim for a long time. I need to leave in about one hour. Instead of wasting time here on HN, I'll now spend an hour learning Vim. I doubt that this will get me very far, but I'll let you know how far I got.
OK, it's been about an hour. I learned the following: - there's a visual mode for selecting text - I can now yank and paste text in normal mode - I learned to use :split and :vsplit to open new files, and ctrl-w to switch between them - I learned a few new navigation commands - I learned that there's a replace mode (R) Definitely useful, and I hope I remember everything the next time I open vim! But I still feel like…
The first and most important things to understand are:
- Normal mode is the default mode. Only leave it when you already know what you want to write.
- Movement follows the [] model. The most used verbs are: d, y, p
The most used targets are j, k, f, F, /, w, W, e, b
Other useful keys to know and use: a, A, o, O, *, ., %
And lastly, learn how to use macros! (q, @)
If you just learn everything I listed here (and it isn't much), until it feels natural, you already know 90% of what you need to boost your editing speed and use vim like a pro.