Cut and paste multiple lines in vim

前端 未结 5 1412
旧时难觅i
旧时难觅i 2021-01-30 03:03

I\'m running vim 7.3 on a Mac 10.7.2 and I\'m having some trouble cutting and pasting several lines.

On my old Linux setup (which was stolen so I don\'t know versions)

5条回答
  •  南笙
    南笙 (楼主)
    2021-01-30 03:27

    You could type:

    dd
    

    where is the number of lines that you want to cut, and then you could paste them with:

    p
    

    For example, to cut and paste 3 lines:

    d3d
    p
    

提交回复
热议问题