title: Changing Vim behavior by file type using single `.vimrc` (without ftplugin)
body: <p>How to change Vim behaviour using single <code>.vimrc</code> file (without ftplugin) in elegant way ?</p>
  
  <p>What do I mean is ... if I run many commends for C/C++ file , e.g.:</p>
  
  <pre><code>set nu
  set cin
  set ai
  set mouse=a
  color elflord
  </code></pre>
  
  <p>and another bunch of commends for AsciiDoc files, e.g.:</p>
  
  <pre><code>set syntax=asciidoc
  set nocin
  set spell spl=en
  </code></pre>
  
  <p>Not mentioning about Python, LaTeX etc....</p>
  
  <p>There is solution presented 
  <a href="https://stackoverflow.com/a/159065/544721">https://stackoverflow.com/a/159065/544721</a>
  for putting <code>autocommand</code> before every custom command.</p>
  
  <p>Is there a nice way to group them for <code>autocommand</code> without using <code>ftplugin</code> - in order to keep everything in single <code>.vimrc</code> file (better for moving around many machines, etc.) ?
  Something equivalent to <code>if</code> statement with brackets <code>{}</code> ?</p>