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?
Use:
:%y+
to yank all lines.
Explanation:
%
y
+
NB: In Windows, + and * are equivalent see this answer.
*
1.4m articles
1.4m replys
5 comments
57.0k users