Here's a little trick: cib is equivalent to ci(. I use cib because it is a little bit faster to press b instead of ( which is Shift + 9 in QWERTY layout. This improvement seems small, but over the time this can make a big difference.
I've been a professional C, Perl, PHP and Python developer.
I'm an ex-sysadmin from the late 20th century.
These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
Here's a little trick:
cibis equivalent toci(. I usecibbecause it is a little bit faster to pressbinstead of(which isShift+9in QWERTY layout. This improvement seems small, but over the time this can make a big difference.Wow. Thanks @m4xshen. That's a good trick. Is there any same thing that we can apply for [], and {}?
Yes, can use
ciBinstead ofci{. However I personally don't use this because the speed are pretty much the same (pressingBalso requiresShiftkey).You can also do
c%if you're on the character itself, regardless of what that character is so long as it is part of a matched pair.