How to paste in the line where the cursor is?

后端 未结 10 1212
心在旅途
心在旅途 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:15

    The Edit menu in gvim lists the following:

    • Paste = "+gP

    • Put Before = [p

    • Put After = ]p

    If you're running vim in Windows, you can do the following to get Ctrl+C and Ctrl+V to work as expected:

    source $VIMRUNTIME/mswin.vim
    behave mswin
    

提交回复
热议问题