title: Multiple autocommands in vim
body: <p>I've got some sections in my <code>.vimrc</code> that look like this:</p>
  
  <pre><code>autocmd Filetype ruby setlocal ts=2
  autocmd Filetype ruby setlocal sts=2
  autocmd Filetype ruby setlocal sw=2
  </code></pre>
  
  <p>now it seems I can convert them to this:</p>
  
  <pre><code>autocmd Filetype ruby setlocal ts=2 sts=2 sw=2
  </code></pre>
  
  <p>but here's my question: is there a vim way to have a structure like this?</p>
  
  <pre><code>&lt;something mentioning Filetype ruby&gt;
    setlocal ts=2
    setlocal sts=2
    ...
  &lt;end&gt;
  </code></pre>
  
  <p>ie, can the <code>autocmd Filetype</code> bit somehow be made to address a group of actions? (this is a simple example, I'm really asking for more complicated situations.)</p>