How to paste in the line where the cursor is?

后端 未结 10 1208
心在旅途
心在旅途 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条回答
  •  独厮守ぢ
    2020-12-04 12:12

    You can use D to delete from current cursor position to the end of line, and the p to the new cursor position.

    That is to cut and paste a whole line use ^D and p.

提交回复
热议问题