From 9e90a2b026f8c15eb5d197631dd321e2a1c06981 Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Thu, 1 Nov 2012 19:11:14 +0000 Subject: [PATCH] Update vim examples from sgml to xml Approved by: bcr (mentor) --- share/examples/vim/edit-xml.vim | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 share/examples/vim/edit-xml.vim 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