vim undo delete line code example
Example: vim delete rest of line
[D] - delete from cursor until end of the line and leave you in command mode.
[C] - delete from cursor until end of the line and leave you in insert mode.
[D] - delete from cursor until end of the line and leave you in command mode.
[C] - delete from cursor until end of the line and leave you in insert mode.