¿How to select all text in vim editor (and copy it to clipboard)?
Two ways:
1.
: % y + |
2.
g g " + y G |
A text like “XXXX lines yanked” will appear and then you are ready to paste the contents to wherever you need
More useful info can be found here
