How to copy and paste in Vim's terminal mode?

后端 未结 3 1168
南方客
南方客 2021-02-20 03:25

I often want to copy text from a :terminal window to a normal text buffer. At the moment I exit the shell session and copy from the history.

3条回答
  •  日久生厌
    2021-02-20 03:46

    Can use Shift+Insert as a shortcut to paste from the clipboard into a running terminal session. Setup the mapping like

    :tmap  "+
    

    The will result in pasting from the + register. Alternatively use the * register which sometimes works better in MS Windows.

提交回复
热议问题