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
I have added the following line to my .vimrc
nnoremap :%y+
This allows me to copy all text in Vim to the clipboard by pressing F5 (in command mode).
F5