title: Storing vim settings with a document
body: <p>Is there any way to save the state of vim settings with a document?</p>
  
  <p>To clarify: I'm editing a document and I change a bunch of settings. I don't necessarily recall which; and I don't want to use these settings again, except for the current document. I don't want to manually try to remember what I've changed; or what the magic abbreviations are for the settings I've changed. I just want to have, say, for "mydoc.txt", a "mydoc.vim" file that puts me back where I left off, and the settings file would be saved automatically based on a vim setting, say, or maybe a ctrl-key does it before I exit. It would be handy if vim could automatically look for such a file.</p>
  
  <p>And it would be preferable not to have to edit the settings into and out of the document itself.</p>