Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Nov 2012 19:11:14 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org
Subject:   svn commit: r39905 - head/share/examples/vim
Message-ID:  <201211011911.qA1JBEFj058898@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211011911.qA1JBEFj058898>