Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does vim have something to handle this delete case?

Tags:

vim

Imagine I have this text:

select_id + " option:selected"))).val();

And my cursor is after +. What kind of motion would allow me to delete everything until the last ), without including it in the deletion. So, after deletion, I would like to have this text:

select_id).val();

What if I have any number of ) before .val()? Something like )))))))))))){N more}).val()

like image 507
Geo Avatar asked Mar 22 '26 10:03

Geo


1 Answers

If your cursor is before +, just type dt.

like image 133
Thanh DK Avatar answered Mar 25 '26 01:03

Thanh DK



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!