aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEitan Adler <eadler@FreeBSD.org>2012-11-01 19:11:14 +0000
committerEitan Adler <eadler@FreeBSD.org>2012-11-01 19:11:14 +0000
commit9e90a2b026f8c15eb5d197631dd321e2a1c06981 (patch)
tree5a31b7e4f5db7d6a1f085345b1143994cfe18a7e
parentd4bc069675cc041bc849a4b1e5215fccaff1db82 (diff)
Notes
-rw-r--r--share/examples/vim/edit-xml.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/share/examples/vim/edit-xml.vim b/share/examples/vim/edit-xml.vim
new file mode 100644
index 0000000000..4fc41244c7
--- /dev/null
+++ b/share/examples/vim/edit-xml.vim
@@ -0,0 +1,11 @@
+" formatting XML documents
+" $FreeBSD$
+
+if !exists("format_fdp_xml")
+ let format_fdp_xml = 1
+ " correction for highlighting special characters
+ autocmd BufNewFile,BufRead *.xml,*.ent,*.html syn match xmlSpecial "&[^;]*;"
+
+ " formatting FreeBSD XML/Docbook
+ autocmd BufNewFile,BufRead *.xml,*.ent set autoindent formatoptions=tcq2l textwidth=70 shiftwidth=2 softtabstop=2 tabstop=8
+endif