Copy all the lines to clipboard

前端 未结 25 2363
礼貌的吻别
礼貌的吻别 2020-11-28 16:54

Is there any way to copy all lines from open file to clipboard in VI editor. I tried yG but it\'s not using clipboard to store those lines.

So

25条回答
  •  旧时难觅i
    2020-11-28 17:40

    I tried a few of the commands that people have mentioned above. None worked. Then I got hold of the simplest of them all.

    Step 1: vi
    Step 2: Right click on the title bar of the Putty window
    Step 3: Select "Clear scrollback" (to avoid copying the rest of your SSH session)
    Step 4: Right click again and select "Copy all to clipboard".

提交回复
热议问题