title: How do I deal with vim's swap file system?
body: <p>When using <code>vim</code> in ubuntu, I accidentally pressed <code>ctrl-z</code> which suspended my session of <code>vim</code>. I was editing a file (I'll call it <code>test</code>) which was not saved.</p>
  
  <p>When I opened the file again in <code>vim</code>, I got the swap file error:</p>
  
  <pre><code>E325: ATTENTION
  Found a swap file by the name ".test.swp"
  
  
  Swap file ".test.swp" already exists!
  </code></pre>
  
  <p>According to <a href="https://stackoverflow.com/questions/13361729">Found a swap file by the name</a> question, I have two options:</p>
  
  <ol>
  <li>Find the session and finish it (preferable).</li>
  <li>Delete the <code>.swp</code> file (if you're sure the other git session has gone away).</li>
  </ol>
  
  <p>How would I do either of those things? If I perform <code>rm test.swp</code> it doesn't see the file:</p>
  
  <pre><code>rm: cannot remove `test.swp': No such file or directory
  </code></pre>
  
  <h2>What am I doing wrong in the deletion of the swap file and how can I finish the session?</h2>
  
  <hr>
  
  <p>EDIT: I forgot the period in <code>test.swp</code>
  So the correct way to remove the swp file is <code>rm .test.swp</code>.</p>
  
  <h2>My remaining question is how to resume/finish a suspended session of <code>vim</code>.</h2>