How can I quickly delete a line in VIM starting at the cursor position?

后端 未结 7 1140
春和景丽
春和景丽 2021-01-29 18:59

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

相关标签:
7条回答
  • 2021-01-29 20:05

    D or dd deletes and copies the line to the register. You can use Vx which only deletes the line and stays in the normal mode.

    0 讨论(0)
提交回复
热议问题