title: VI Editor : Yank the entire file to clipboard (specific to OS X)
body: <p>Is there any way to copy all lines from a file to clipboard in VI editor. I have tried <code>*yG</code>, <code>+yG</code>, <code>"+yG</code> and <code>:%y+</code> from previous posts in SO, but nothing works in OS X. </p>