The Power of ci"
Change Inside Quotes with Surgical Precision
Text objects are one of Vim's most powerful features. Instead of counting characters or using multiple commands, you can operate on logical units like "everything inside quotes," "the current word," or "content inside parentheses."
Result: Deletes everything between the nearest pair of quotes and puts you in insert mode to type replacement text.
Transform the console.log message from "Hello, World!" to "Vim Ninja Rocks!" using only Vim commands.
Transform the console.log message from "Hello, World!" to "Vim Ninja Rocks!" using only Vim commands.
function main() { console.log("Hello, World!"); }
function main() { console.log("Vim Ninja Rocks!"); }
Click "Start Tutorial" to begin your interactive Vim learning journey. You'll advance through each step at your own pace.
Congratulations on mastering the ci" command
Now that you understand text objects, explore these powerful variations:
ci(
Change inside parenthesesciw
Change inside wordci{}
Change inside bracescit
Change inside HTML tagText objects are just the beginning. Master Vim's full potential with more advanced tutorials and exercises.
The Vim tutorial experience is optimized for desktop. Please open this on a computer to get the full interactive experience.