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
Here's a map command to select all to the clipboard using CTRL+a:
" " select all with control-a " nnoremap ggmqvG"+y'q
Add it to your .vimrc and you're good to go...