title: Vim: Creating parent directories on save
body: <p>If I invoke <code>vim foo/bar/somefile</code> but <code>foo/bar</code> don't already exist, Vim refuses to save.</p>
  
  <p>I know I could switch to a shell or do <code>:!mkdir foo/bar</code> from Vim but I'm lazy :)
  Is there a way to make Vim do that automatically when it saves the buffer?</p>