How can I quickly delete a line in VIM starting at the cursor position?
问题 I want to be able to delete the remainder of the line I'm on starting at the cursor's position in VIM. Is there an easy command to do this? To help illustrate, this is before the command. The quick brown dog jumps over the lazy fox. ^ |----- Cursor is here. This is after the command The q ^ |----- Cursor is here. 回答1: (Edited to include commenter's good additions:) D or its equivalent d$ will delete the rest of the line and leave you in command mode. C or c$ will delete the rest of the line