title: How to fix .bash_profile when Terminal won't work
body: <p>I was trying to customize my prompt in Terminal.  To do this, I tried to edit <code>.bash_profile</code> using vim, but ended up with a <code>.bash_profile.swp</code> file.  Following some posts I found online, I used the <code>:recover</code> command in vim, which created a new <code>.bash_profile</code> and then deleted the .swp file. However, now Terminal does not seem to work. When I open it, I get the below message:</p>
  
  <blockquote>
    <p>-bash: c: command not found</p>
    
    <p>-bash: end: command not found</p>
    
    <p>[Process completed]</p>
  </blockquote>
  
  <p>Does anybody know how to fix this?</p>