Delete n lines in the up direction in vim

前端 未结 5 2078
旧时难觅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:12

    V3kd would do it.

    Thats "V" to enter visual line select mode, "3k" to move up 3 lines, and then "d" to delete the 4 lines you have selected.

提交回复
热议问题