title: Vim: Move cursor to its last position
body: <p>Is it possible in (g)Vim to move the cursor to its previous position (while in normal mode)? Something to cycle back and forth in the list of previous cursor positions would be ideal. But also just to switch to the last location would suffice (something like <code>cd -</code> in bash with directories).</p>
  
  <p>Here's a little demonstration:</p>
  
  <pre><code>line |1| &lt;- cursor position
  line 2
  line 3
  line 4
  </code></pre>
  
  <p>And suppose I did <code>2j</code>, here's how it is now:</p>
  
  <pre><code>line 1
  line 2
  line |3| &lt;- cursor position
  line 4
  </code></pre>
  
  <p>Now I'd like to press something (other than <code>2k</code> obviously) to move back to the first position and possibly to previous positions.</p>