Yank entire file


I often write something in gVim, then need to copy-paste it into another application.

Is there an easy way to yank the entire file? I usually do something like this


(Go to top, visual-line mode, go to bottom, yank)

But is there a better way that I'm missing out on?

Best Answer

I use the following instruction: :%y+