How to remove to the end of the separator?

In vim, I know that typing di 'will delete the text included by one apostrophe,

'hello world' => <di'> => ''

but I will say that I want to delete to the end of the apostrophe?

For instance:

'hello world' => <delete command with cursor on w> => 'hello '

Is there an obvious way to do this?

+5
source share
1 answer

I think this is what you want:

dt'

Use the " d elete t ill" mnemonics to remember. dT'will remove the back side, leaving you with "peace." There is also df'that which will delete everything, including the apostrophe. Additional information on search and share is available here .

+11
source

All Articles