vim tips: motion keys
The biggest "level up" tip I could give to any beginner to moderate #Vim user is: learn all the movement keys and use them obsessively.
Deleting some characters? Mashing backspace in insert mode wastes keystrokes, mashing "x" is annoying to undo.
dt_ -- delete up to the next _
df_ -- delete up to and including the next _
ct_ -- delete to the next _ and switch to insert mode
di} -- delete inside the current braces
4dt_ -- delete until the 4th underscore
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!