22 May 2017 Format XML in vim Use xmllint to format xml in vim au FileType xml setlocal equalprg=xmllint\ --format\ --recover\ -\ 2>/dev/null