title: How to undo up to last write in vim?
body: <p>Let me pose the question this way. I open a new file in vim, (version 1)</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  main()
  {
  ...blah
  }
  </code></pre>
  
  <p>and then use <code>&lt;Esc&gt;:w&lt;Enter&gt;</code> to write the file. Then made changes (version 2)</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  main()
  {
  ...blah
  ... edit1
  ... edit2 //and large number of changes here and there in code
  }
  </code></pre>
  
  <p>then I save changes using <code>&lt;Esc&gt;:w&lt;Enter&gt;</code>.</p>
  
  <p>Is there a way to undo changes to version 1 directly (Since it was a last save) i.e., without constantly pressing <code>u</code> for <code>undo</code>ing</p>