Last Updated: February 20, 2016
·
629
· teranex

Vim tip

In Vim, use ci( to change everything inside (). Cursor is |:

foobar('hell|o', 29);

type ci(

foobar(|);    

1 Response
Add your response

It's calles text objects:


ci{
ci[
ci"
ci'
ci`
cit - tag
cip - paragraph
ciw - word
cis - sentence

di( - stays in normal mode (di[, di{, di" etc)
ca( - deletes also ()
</code></pre>
over 1 year ago ·