this post was submitted on 17 Jul 2024
45 points (97.9% liked)

Ask Experienced Devs

1235 readers
1 users here now

Icon base by Delapouite under CC BY 3.0 with modifications to add a gradient

founded 1 year ago
MODERATORS
 

I'd like actual examples instead of "I work faster", something like "I can move straight to the middle of the file with 7mv" or "I can keep 4 different text snippets in memory and paste each with a number+pt, like 2pt", things that you actually use somewhat frequently instead of what you can do, but probably only did once.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 2 points 3 months ago* (last edited 3 months ago) (1 children)

I don't know this command, about to test it out.

I always use 0 and $, then W and B to leapfrog words manually ๐Ÿ’€

Thanks!

[โ€“] [email protected] 2 points 3 months ago

Welcome! I also stumbled upon these after I'd been using vim for a while. You've probably seen them in guides but glossed over them like I did originally. But once you get used to using these keys, you'll wonder how you lived without them!

Used in combos like f(dib (delete function parameters), or 2t. (go back two periods, or sentences) they're so great for moving within a long row.