summaryrefslogtreecommitdiff
path: root/share/examples/vim/edit-sgml.vim
diff options
context:
space:
mode:
Diffstat (limited to 'share/examples/vim/edit-sgml.vim')
-rw-r--r--share/examples/vim/edit-sgml.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/share/examples/vim/edit-sgml.vim b/share/examples/vim/edit-sgml.vim
new file mode 100644
index 0000000000..703ab82a9e
--- /dev/null
+++ b/share/examples/vim/edit-sgml.vim
@@ -0,0 +1,11 @@
+" formatting SGML documents
+" $FreeBSD$
+
+if !exists("format_fdp_sgml")
+ let format_fdp_sgml = 1
+ " correction for highlighting special characters
+ autocmd BufNewFile,BufRead *.sgml,*.ent,*.html syn match sgmlSpecial "&[^;]*;"
+
+ " formatting FreeBSD SGML/Docbook
+ autocmd BufNewFile,BufRead *.sgml,*.ent set autoindent formatoptions=tcq2l textwidth=70 shiftwidth=2 softtabstop=2 tabstop=8
+endif