title: How do I format an unformatted XML document using gVim?
body: <p>I often open XML documents within gVim in Windows which end up with everything on one line. I manually do a search and replace command:</p>
  
  <pre><code>:%s/&gt;&lt;/&gt;\r&lt;/g
  </code></pre>
  
  <p>to get all fields on individual lines then tab out manually the lines. This isn't going to work with sizable files, and isn't efficient in any size file anyways.</p>
  
  <p><p>Is there a way built into gVim or is there a tool (preferably in gVim) available to help me format my XML documents into separate lines from its one line version that open up by default in gVim?</p>