projects
/
vimconf.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
xml: Add XML_reformat() function
[vimconf.git]
/
ftplugin
/
xml.vim
diff --git a/ftplugin/xml.vim
b/ftplugin/xml.vim
new file mode 100644
(file)
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