how to paste to vim when using putty

前端 未结 5 791
半阙折子戏
半阙折子戏 2021-01-30 10:26

I am using putty to connect a remote host and editing via vim. I meet a trouble when I try to paste something to vim. That\'s, I copy something to clipboard in my local host and

5条回答
  •  爱一瞬间的悲伤
    2021-01-30 10:43

    To clarify the other answers, there are a couple ways to do this, depending on if Vim is running with mouse support. Lets assume its via some sort of terminal/Putty:

    • When not using mouse in remote Vim, right clicking will paste from local clipboard via Putty into remote Vim.
    • With mouse enabled in remote Vim, Shift + Ins will paste from local clipboard via putty into remote vim.
    • Ctrl + Shift + v will paste from local clipboard via native/*nixish/xterm into remote vim.
    • With mouse enabled in remote Vim, middle clicking will paste from remote clipboard into remote Vim.

提交回复
热议问题