targets.vim extends Vim with a rich set of additional text objects that work like native “inside/around” (i/a) objects but cover more delimiters and structures. It introduces flexible objects for arguments, separators, quotes, tags, and custom pairs so you can select, change, or delete logical units with fewer keystrokes. The plugin also adds “next” and “last” variants, enabling you to operate on the upcoming or previous occurrence without moving the cursor first. Its design emphasizes predictability: the same mental model as built-in objects applies across many new patterns. Because it’s purely text-object oriented, it composes naturally with motions, operators, and dot-repeat for powerful refactors. This dramatically speeds structural edits in code and markup where consistent delimiter logic matters.
Features
- New text objects for arguments, separators, quotes, tags, and more
- Inside/around semantics that mirror Vim’s native objects
- “Next” and “last” variants to act on nearby occurrences in place
- Works with any operator (change, delete, yank) for structural edits
- Highly configurable mappings and delimiter sets
- Composable behavior that plays well with dot-repeat and motions