Depending on how often you do it, just map a key for this and optionally add to the vimrc
:nnoremap <F5> :%y
or
:nnoremap <leader><whatever> :%y
or whatever key you know is safe and is fastest—then add to a mappings source or whatever. The advantage to this over ggyG
is that it's not moving the cursor (faster) and to retain your cursor position you'd have to add a <Ctrl-o><Ctrl-o>
People often forget that commands are session based unless in the vimrc. I often know when I'm going to do a lot of something but don't need it as default and just :[mode]remap <whatever> <whatever>
I can close and re-open vim if I need to.
If <Ctrl-A><Ctrl-C>
works for you then you’re using mswin.vim in your source and losing out on the power of increment <Ctrl-a>
and decrement <Ctrl-x>
operations (among other things). I started in windows and stopped using mswin.vim along time ago. I personally feel it's best to grok Vim the right way and then add in the crutches you really need :P