How to delete in vim everything in between the cursor and the end of the line while on insert mode

vim

While in normal mode I can delete all the characters after the cursor by typing d$. I'd like to achieve the same but in insert mode in the same way that you can delete things to the left of the cursor with Ctrl + W

Best Answer

There are many ways:

  • esc, shift+C
  • ctrl+O, shift+D
  • shift+end, del
  • shift+end, s

Don't be afraid of falling back to the normal mode even for a short instant.

Related Question