How can I delete from the current cursor position to the end of line in vim's insert mode?
I know you can do this with D
in command mode, and I know you can delete from the cursor position to the beginning of the line in insert mode with ctrl-u, so I'm guessing this should be possible.
If you're in insert mode and you want to execute a single normal mode command, you can press:
Ctrl+o
After the normal mode command has executed, you'll be returned to insert mode. So, you can use D that way:
Ctrl+oD
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