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
The clipboard is buffer +. To copy to clipboard, do "+y and [movement].
So, gg"+yG will copy the whole file.
Similarly, to paste from clipboard, "+p