X-Git-Url: https://git.sthu.org/?p=vimconf.git;a=blobdiff_plain;f=ftplugin%2Fxml.vim;fp=ftplugin%2Fxml.vim;h=e72b00e67c4e7bf97729007faf64e0aa61f5e08c;hp=0000000000000000000000000000000000000000;hb=a89eb6e1fb9a8f310d64c5bc11ca109a887d4461;hpb=24b80095f7be30c28b49af5348755b90f18cbe53 diff --git a/ftplugin/xml.vim b/ftplugin/xml.vim new file mode 100644 index 0000000..e72b00e --- /dev/null +++ b/ftplugin/xml.vim @@ -0,0 +1,9 @@ +if exists("b:did_ftplugin") + finish +endif +let b:did_ftplugin = 1 + +" Pretty format the XML content by passing it through xmllint. +function XML_reformat() + exec "%!xmllint --format -" +endfunction