How to delete the rest of a line after the cursor in vim?

 

Vim has a host of really useful shortcuts; the one we are looking at today allows you to delete the text on the same line after the cursor position. To do this, move the cursor to the desired position and hit:

 

shift+d

 

In other words, a capital D. We don’t need a colon in front of it. This will delete the remainder of the line.


Posted

in

by

Tags: