title: Vim formatting using gg=G with xml
body: <p>I have a correctly formatted xml file, and following the command given as an answer here:</p>
  
  <p><a href="https://stackoverflow.com/questions/2355834/auto-format-c-file-in-vim">How can I autoformat/indent C code in vim?</a> </p>
  
  <p>I am trying to auto indent my file to display correct nesting.</p>
  
  <p>Before I tried to use this command I set the file type to xml using <code>:set ft=xml</code>
  as the file I started with has an extension of <code>.mm</code>, and also <code>:set nowrap</code>.</p>
  
  <p>Here is my ~/.vimrc file:</p>
  
  <pre><code>syntax on
  set history=1000
  set smartindent
  set tabstop=2
  set shiftwidth=2
  set expandtab
  </code></pre>
  
  <p>How come when I issue <code>gg=G</code>, I get a message saying <code>54 lines indented</code>, yet my file remains un-nested?</p>