I know how to delete until a char forward, like using dtx
to delete till the x
char from current cursor onwards. But how can I to do that backwards?
Say I have the following:
"abc I want to delete back to I"
And the cursor is at the end of the line, I want it to be "abc "
.
In general, capital letters reverse. So we have:
I guess the problem is not how to remove till/to (T/F
) the char backwards. You need delete the char under cursor too , in your case, the last I
. leaving abc<space>
at the end.
You can move to the first I
backwards, than D
:
FID
or move cursor to the beginning, do it forwardly.
0FID
you can do an extra x
.
dFIx
with v
:
vFIx
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