svn commit: r39905 - head/share/examples/vim

Eitan Adler eadler at FreeBSD.org
Thu Nov 1 19:11:15 UTC 2012


Author: eadler
Date: Thu Nov  1 19:11:14 2012
New Revision: 39905
URL: http://svn.freebsd.org/changeset/doc/39905

Log:
  Update vim examples from sgml to xml
  
  Approved by:	bcr (mentor)

Added:
  head/share/examples/vim/edit-xml.vim
     - copied, changed from r39887, head/share/examples/vim/edit-sgml.vim

Copied and modified: head/share/examples/vim/edit-xml.vim (from r39887, head/share/examples/vim/edit-sgml.vim)
==============================================================================
--- head/share/examples/vim/edit-sgml.vim	Wed Oct 31 21:24:52 2012	(r39887, copy source)
+++ head/share/examples/vim/edit-xml.vim	Thu Nov  1 19:11:14 2012	(r39905)
@@ -1,11 +1,11 @@
-" formatting SGML documents
+" formatting XML documents
 " $FreeBSD$
 
-if !exists("format_fdp_sgml")
-  let format_fdp_sgml = 1
+if !exists("format_fdp_xml")
+  let format_fdp_xml = 1
   " correction for highlighting special characters
-  autocmd BufNewFile,BufRead *.sgml,*.ent,*.html syn match sgmlSpecial "&[^;]*;"
+  autocmd BufNewFile,BufRead *.xml,*.ent,*.html syn match xmlSpecial "&[^;]*;"
 
-  " formatting FreeBSD SGML/Docbook
-  autocmd BufNewFile,BufRead *.sgml,*.ent set autoindent formatoptions=tcq2l textwidth=70 shiftwidth=2 softtabstop=2 tabstop=8
+  " formatting FreeBSD XML/Docbook
+  autocmd BufNewFile,BufRead *.xml,*.ent set autoindent formatoptions=tcq2l textwidth=70 shiftwidth=2 softtabstop=2 tabstop=8
 endif


More information about the svn-doc-head mailing list