aboutsummaryrefslogtreecommitdiff
path: root/share/examples/vim/edit-xml.vim
diff options
context:
space:
mode:
Diffstat (limited to 'share/examples/vim/edit-xml.vim')
-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