DEV Community

Discussion on: Vim - key combinations to change text

Collapse
 
m4xshen profile image
Max Shen

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.

Collapse
 
documendous profile image
Documendous

Very good point. Thanks for the post, Max!

Collapse
 
thinhkhang97 profile image
Khang Nguyen

Wow. Thanks @m4xshen. That's a good trick. Is there any same thing that we can apply for [], and {}?

Collapse
 
m4xshen profile image
Max Shen

Yes, can use ciB instead of ci{. However I personally don't use this because the speed are pretty much the same (pressing B also requires Shift key).

Thread Thread
 
moopet profile image
Ben Sinclair

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.