vim tasks
Refactor with Vim Text Objects
Use inside/around text objects to edit quoted strings, words, and bracketed blocks precisely.
Published: 2026-03-09Updated: 2026-03-09
Text objects reduce cursor choreography and make refactors deterministic.
Reliable patterns
Use ciw for words, ci" for strings, and ci( for arguments to make edits predictable and composable.
Common Mistakes
- •Confusing i vs a text objects.
- •Applying objects from outside the delimiter context.
FAQ
When should I use around instead of inside?
Use around when you also want delimiters or adjacent whitespace included.