vimeditorkeyboard-shortcutsvi

Copy all the lines to clipboard


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 is it possible?


Solution

  • You should yank the text to the * or + registers:

    gg"*yG

    Explanation: