Copy all the lines to clipboard

前端 未结 25 2319
礼貌的吻别
礼貌的吻别 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条回答
  •  眼角桃花
    2020-11-28 17:40

    Do copy the whole file inside the vim or its tabs

    y G 
    

    then move to a tab and paste by

    p
    

    and to cut the whole file use

    d G
    

提交回复
热议问题