title: Discovering the cause of Vim exit status
body: <p>On running:</p>
  
  <pre><code>vim /tmp/blah
  :q
  echo $?
  </code></pre>
  
  <p>I get an exit status of <code>1</code>. This is breaking various things including Git. If I run vim without my vimrc:</p>
  
  <pre><code>vim -u NONE /tmp/blah
  :q
  echo $?
  </code></pre>
  
  <p>I get an exit status of <code>0</code>. I use Pathogen so this also effectively disables plugins. Does anyone have a suggestion for efficiently determining the cause of the exit status? I'm aware of running Vim verbosely and logging to a file. Should I be looking for something specific in this file? </p>
  
  <p>If there is a method of finding the exact line that determines the exit status I would love to know of it as searching around didn't turn much up.</p>