Select all in VIM editor
The simplest and fastest way is to use: : % y + and then go over to Google Docs (or wherever) and paste. Explanation:
- % to refer the next command to work on all the lines
- y to yank those lines
- + to copy to the system clipboard
Another way is g g " + y G but you will likely admit that the above is faster and easier.
Source: http://superuser.com/questions/227385/how-do-i-select-all-text-in-vi-vim