title: Vim: how to create key mapping to :edit and jump to last line?
body: <p>I mapped key <kbd>F2</kbd> to refresh (<code>:edit</code>) currently opened file. I'm using this when watching a log file to update the screen when file has been updated outside (new lines added at the end of a log file).</p>
  
  <pre><code>nnoremap &lt;silent&gt; &lt;F2&gt; :edit&lt;CR&gt;
  </code></pre>
  
  <p>I would like to jump to the end of the file after it has been refreshed.</p>
  
  <p>How do I create key mapping which does <code>:edit</code> and jump to end of the file (shortcut <code>G</code>) at the same time?</p>