How to “copy to clipboard” in vim of Bash on Windows?

前端 未结 9 1027
执念已碎
执念已碎 2020-12-13 00:38

I used to use \"+y to copy text to system\'s clipboard, but it doesn\'t work in vim of Bash on Windows.

9条回答
  •  误落风尘
    2020-12-13 01:16

    To copy to the clipboard from within vim in Bash on Windows 10, hold Shift and drag the cursor over text. then press enter

    A selection should look like this before pressing enter:

    EDIT: This only works with text that fits on the screen all at once; it cannot be used to copy blocks of text that span many 'screens'

提交回复
热议问题