title: Vim tab spacing after enter (new line)
body: <p>I've this tab spacing configuration:</p>
  
  <pre><code>set autoindent
  set smartindent
  set expandtab tabstop=4 shiftwidth=4 smarttab softtabstop=4
  </code></pre>
  
  <p>and at the end of configuration, I put this:</p>
  
  <pre><code>autocmd FileType javascript,jade,json set shiftwidth=2 tabstop=2 softtabstop=2
  </code></pre>
  
  <p>The 2 spaces tab works just fine. But, if I type enter (new line), it became 4 spaces. Here is the example:</p>
  
  <pre>
  
       var Post = orm.define('Post', {       
         title: sequelize.STRING,      
         content: sequelize.STRING,
           | /* wrong spaces */
       });
  
  </pre>
  
  <p>But if I use 4 tab spaces, it also use 4 spaces after enter.</p>
  
  <p>I can't figure out what's the problem.</p>
  
  <h2>EDIT:</h2>
  
  <p>It ONLY happened when I write object-literal in a javascript callback function (like the code example above). It works fine with general code statement and in json object-literal. Here is the example:</p>
  
  <pre>
  
      /* the 2 spaces works fine*/
      app.set('port', 3000);
      app.use(express.bodyParser());
  
      /* also works fine here */
      var config = {
        host: 'localhost',
        port: 5432
      }
  
  </pre>