diff options
author | Gabor Kovesdan <gabor@FreeBSD.org> | 2013-02-05 09:14:34 +0000 |
---|---|---|
committer | Gabor Kovesdan <gabor@FreeBSD.org> | 2013-02-05 09:14:34 +0000 |
commit | a06603e1e8c43dac65e769d0577e15561dde3acb (patch) | |
tree | 56789ede4270141e038c244e602fe2503127b62f /share/examples/vim/edit-xml.vim | |
parent | 5be98520031882d40220ca83d603138abb7ef89a (diff) | |
parent | fbf79ce9835e43f0e5de684052af39c914b817ab (diff) |
Notes
Diffstat (limited to 'share/examples/vim/edit-xml.vim')
-rw-r--r-- | share/examples/vim/edit-xml.vim | 11 |
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 |