VI Editor : Yank the entire file to clipboard (specific to OS X)

Viewed 13261

Is there any way to copy all lines from a file to clipboard in VI editor. I have tried *yG, +yG, "+yG and :%y+ from previous posts in SO, but nothing works in OS X.

3 Answers
Related