In vim, I know that typing di' will delete text inclosed by a single apostrophe,
'hello world' => <di'> => ''
but lets say I want to delete until the end of the apostrophe?
For example:
'hello world' => <delete command with cursor on w> => 'hello '
Is there an obvious way to do this?
I think this is what you want:
dt'
Use the mnemonic "delete till '" to remember. dT'
will delete backwards leaving you with "world". There is also df'
that will delete everything, including the apostrophe. More information on find and till is available here.
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