xml: Add XML_reformat() function
[vimconf.git] / ftplugin / xml.vim
1 if exists("b:did_ftplugin")
2 finish
3 endif
4 let b:did_ftplugin = 1
5
6 " Pretty format the XML content by passing it through xmllint.
7 function XML_reformat()
8 exec "%!xmllint --format -"
9 endfunction