How to paste in the line where the cursor is?

后端 未结 10 1243
心在旅途
心在旅途 2020-12-04 11:26

The command p pastes below the cursor and P pastes above the cursor. What\'s the command to paste in the line where cursor is?

10条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-04 12:04

    1. divide the line into 2 wherever you want to insert

    2. paste the section between them

    3. merge the 3 lines with j as described here (Delete newline in Vim)

    works, but tedious, and had to think about, look it up => vi and emacs are garbage software

提交回复
热议问题