Delete n lines in the up direction in vim

前端 未结 5 2079
旧时难觅i
旧时难觅i 2021-02-01 12:41

Is there a command in vim which will delete n lines in the up direction.

I know I can use 4dd which will delete 4 lines downwards.

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-01 13:07

    You can do it with a backwards range.

    :-4,.d
    

    Deletes from minus 4 lines to current. But this is an ex mode command.

提交回复
热议问题