title: How to "select all" in vim without losing cursor position?
body: <p>My mswin.vim contains the following command for Ctrl-A</p>
  
  <pre><code>inoremap &lt;C-A&gt; &lt;C-O&gt;gg&lt;C-O&gt;gH&lt;C-O&gt;G
  </code></pre>
  
  <p>This command correctly selects all lines in the file but also makes the cursor jump to the end of the file (undesired side effect). Is there a way to "select all" without moving the cursor?</p>
  
  <p>Thanks in advance for any help or suggestion.</p>