Last Updated: January 28, 2019
·
7.673K
· rodnaph

Vim: Change In Parenthesis

We often edit parameters of functions, most have them. Here's a seriously useful Vim tip for changing all text inside parenthesis.

ci(

"Change In Parenthesis". More information in Steve Losh's excellent book...

http://learnvimscriptthehardway.stevelosh.com/chapters/15.html

3 Responses
Add your response

Very useful!

over 1 year ago ·

Thanks!

over 1 year ago ·

It works only if the cursor is placed on or inside (.

ci' works for the next found ' (single quote) in the cursor's line even if cursor is at row 0

over 1 year ago ·