Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does it include practical use cases demonstrating how vim tricks can really come in handy in real life? This probably is the hardest part for me - I can't imagine a case where I would like to use any of them I've ever read about (yet I still feel interested).


Not a mega power vim user, but maybe this qualifies. I use vim as my git editor. When doing interactive rebase, if I want to squash/fix commits, for example, I go to the first commit I want to change the command for, ‘ciw’ to change the command, ‘esc’ to exit exit, then for the subsequent commits I want to squash/fix, just use ‘.’ to replay those same commands to the new line. Works very well! I love using vim as the git editor, it’s stupid fast, and doesn’t take you away from the command line


That's a neat tip, thanks for sharing that, this is the exact use case I was looking for.

I was hoping to kick the can on learning vim macros down the road, and so here we go...


No problem! Happy to help with things I wish people told me long ago :)


Yes it does, all the exercises past the basic navigation one are real life use cases for how it can be used.

I need to add some better copy and examples on the landing page so people will know what they're getting.

Here's a video on twitter that demonstrates one of the exercises https://twitter.com/KennethCassel/status/1351178904686514178...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: