Use:
:%y+
to yank all lines.
Explanation:
%to refer the next command to work on all the linesyto yank those lines+to copy to the system clipboard
NB: In Windows, + and * are equivalent see this answer.
Use:
:%y+
to yank all lines.
Explanation:
% to refer the next command to work on all the linesy to yank those lines+ to copy to the system clipboardNB: In Windows, + and * are equivalent see this answer.