back

by JNRowe·3y ago·view on hn ↗
I really can't recommend Drew Neil's resources enough. The vimcasts¹ series are great if you're the sort of person who likes videos to learn with, and both his books are excellent²³. [The books may appear to be getting a little long in the tooth, but their contents are still very applicable to today's usage.]

My own "trick" for improving my vim usage was to start mapping things to <Nop> that have better replacements, it is a great way to shock yourself out of bad habits like hjkl movements or reliance on /. Then again, I think text-objects and the items below it in motion.txt are the main to use vim so YMMV.

¹ http://vimcasts.org/

² https://pragprog.com/titles/dnvim2/practical-vim-second-edit...

³ https://pragprog.com/titles/modvim/modern-vim/

1 comments
Thanks! Now I'm curious what is bad about hjkl movements :)
I perhaps shouldn't have said "bad," as my opinions sadly aren't universal truths ;)

However, my reasoning is the same as noted in echelon's reply. There are often far better ways to move around as described in ":h text-objects" and ":h motion.txt" more generally.

Ideally, you would never need to adjust motion by a random number of characters; you would use semantic motion by text object, making hjkl a rare corrective move. In practice, we are only humans, so...
You tend to overuse arrow key-like navigation instead of developing chords of movements.

I got stuck in that suboptimal mode and had to break myself of it.

So am I. Not all terminals actually had cursor keys.