One of the most common operation with source code is to modify the method arguments. Given a method argument list like this:
("argument1","argument2","argument3")
I wanna know how to deal with following operations(I use | here as a cursor position):
"ar|gument1" to "|"
("argument1","argument2","argument3") to (|)
Try these commands:
di" (mnemonic: delete iniside ")da" (mnemonic: delete around ")di( or dib (mnemonic: delete inside () pair)if you want to change the values (i.e. delete and remain in insert mode), use c instead of d.
For more information, and a lot of other possibilities, check :help text-objects.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With