Vim Editing Text Objects: The Magic

Text Objects: The Magic

AS
Aman Saurav
| Mar 9, 2025 |
10 min read
#advanced

Instead of deleting character by character, delete by “object”.

ciw  -> Change Inner Word
di(  -> Delete Inside Parentheses
yap  -> Yank Around Paragraph

Put your cursor inside (some text) and type ci(. The text vanishes and you are in insert mode!