tech

Advanced Vim Tips

vimeditingproductivity

You know the basics. Here is what comes next.

Motions and Text Objects

ci"  — change inside quotes
da(  — delete around parentheses
yip — yank inside paragraph

Macros

qa…q records to register a. @a replays. 5@a replays five times. Macros turn repetitive edits into a single keystroke.

The Dot Command

. repeats the last change. Combined with f (find) and ; (repeat find), you can make complex edits flow like a conversation with the editor.