I would like to delete the text following the word the cursor is currently over at. E.g.
The quick brown fox jumps over the lazy dog
^ the cursor is here
The quick
^ the desired result
eD
is quite close to what I would like to accomplish but it removes the character the cursor is over at too. <C-U>
does the exact job but from the cursor to the beginning of the line. Is there any combination which does the same forward?
Is there any other way to accomplish this than by creating another key mapping? There are quite a few shortcuts in vim so avoiding creating another one would be great.
If you are in NORMAL mode, here are a couple of solutions.
First solution:
wDD
Explanation:
Second solution:
f<space>D
Explanation:
<space>
to the rightWhat about:
w
d$
x
So:
wd$x
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