Hacker News new | ask | show | jobs
by wonderzombie 5708 days ago
You should give ci' or ci( or ci[ or ci" a try. (You could also use ci) or ci] if you prefer.)

Do it on a line where there is a pair of quotes, parens, brackets, etc.

2 comments

Also cit/cat in HTML.
also, ciw which I use far more often than cw (don't need to be on beginning of word to change the whole thing). I like how all the ci commands always elicit a "whoa, what did you just do?" from people watching me edit.
It's this kind of magic that attracted me to Vim in the first place. I watched a professor doing that stuff in front of class and my jaw dropped. The circle was complete when a coworker watching me modify some code had a similar reaction. (Sadly I did not convert him.)