• ↑↓ pour naviguer
  • pour ouvrir
  • pour sélectionner
  • ⌘ ⌥ ↵ pour ouvrir dans un panneau
  • ←→ pour naviguer
  • esc pour rejeter
⌘ '
raccourcis clavier

The Problem

Single-character/single-line operations are inefficient when editing structured text (quotes, brackets, paragraphs). Manually counting or searching to select delimited blocks is error-prone.

Core Idea

Text objects allow selecting delimited content (words, sentences, paragraphs, quoted strings, brackets) with two-character commands: <action>i<object> (inside) or <action>a<object> (around).

How It Works

Pattern: <action>a<object> and <action>i<object>

  • action: any operator (d delete, y yank, v select)
  • i: inside (content only)
  • a: around (including delimiters)

Common objects:

ObjectMeaning
wword
WWORD (whitespace-separated)
ssentence
pparagraph
"double quotes
'single quotes
) or bparentheses
]brackets
}braces
ttags (like <html>)

Key Properties

  • ci" changes inside quotes without deleting the quotes
  • da" includes the quotes in the deletion
  • v2i) selects the inner two parentheses groups
  • Count prefixes work: d2i( deletes two nested groups

Edge Cases & Gotchas

  • Visual mode doesn’t need an action — just vi" works
  • Nested quotes: counts work (ci"" — inner pair in "foo"bar")
  • Objects are motion-compatible — y works same as d (yanks)

Connections