News for hackers. Stuff that matters.
Re:20 Years of Vim by amelius on Saturday August 12, 2023 @11:58AM (#37101493)
Is anyone keeping track of what the most popular Vim commands are?

Personally, I've been using Vim for years, but I must confess that I use almost the same commands as I did in the beginning. Is there any good website that teaches useful tricks, maybe on a daily basis?

Re:20 Years of Vim by JNRowe on Saturday August 12, 2023 @12:40PM (#37101916)
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 great way to shock yourself out of bad habits like hjkl movements and such. 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/

Re:20 Years of Vim by amelius on Saturday August 12, 2023 @01:16PM (#37102260)
Thanks! Now I'm curious what is bad about hjkl movements :)
Re:20 Years of Vim by JNRowe on Saturday August 12, 2023 @01:31PM (#37102385)
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.

Re:20 Years of Vim by echelon on Saturday August 12, 2023 @01:17PM (#37102276)
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.

Re:20 Years of Vim by smackeyacky on Saturday August 12, 2023 @05:01PM (#37104191)
So am I. Not all terminals actually had cursor keys.
Re:20 Years of Vim by ykonstant on Sunday August 13, 2023 @05:41AM (#37108267)
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...