Update vim examples from sgml to xml
Approved by: bcr (mentor)
This commit is contained in:
parent
d4bc069675
commit
9e90a2b026
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=39905
1 changed files with 11 additions and 0 deletions
11
share/examples/vim/edit-xml.vim
Normal file
11
share/examples/vim/edit-xml.vim
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue