title: Vim: Change the file format for a particular directory
body: <p>I'm using Vim to work on a project with others developers using Windows.</p>
  
  <p>The problem: I get "^M" characters instead of line-breaks. This can be solved with this simple command</p>
  
  <pre><code>:set fileformats=dos
  </code></pre>
  
  <p>But when I restart Vim, the file is opened again with the unix format. Another problem is that I have to execute the command for each file in the directory.</p>
  
  <p>Is it possible to set this parameter for a whole directory?</p>