summaryrefslogtreecommitdiff
path: root/share/examples/vim/edit-sgml.vim
diff options
context:
space:
mode:
authorNik Clayton <nik@FreeBSD.org>1999-11-15 19:41:09 +0000
committerNik Clayton <nik@FreeBSD.org>1999-11-15 19:41:09 +0000
commit2ee8a10ad291c348034ff719bfe02a58507603c2 (patch)
tree1b9062cdb3bd53516ed3c055dd105dcbcbeb0c6c /share/examples/vim/edit-sgml.vim
parentf92d0dc4467359801a95412ad9cd6c27b9cc3009 (diff)
Sample .vimrc and associated files for editing FDP documentation, and
maintaining structure, and so on. Submitted by: Robert Brive <brive@freebsd-fr.org
Notes
svn path=/head/; revision=6069
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