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
Well, all of these approaches are interesting, however as lazy programmer I use yank all line by using combination of number + y
for example you have source code file with total of 78 lines, you can do as below:
gg
to get cursor at first line y
--> it yanks 78 lines below your cursor and current line