summaryrefslogtreecommitdiffstats
path: root/runtime/ftplugin/dtd.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2008-08-06 17:06:04 +0000
committerBram Moolenaar <Bram@vim.org>2008-08-06 17:06:04 +0000
commite37d50a5def1c0ff162392cd3f017059c458650c (patch)
treee7d1e2b17976b130d1283d33b091baf30cfc5d2c /runtime/ftplugin/dtd.vim
parentda40c8536c2b7bdbd1d192ee1aa3045e2119675e (diff)
updated for version 7.2c-000v7.2c.000
Diffstat (limited to 'runtime/ftplugin/dtd.vim')
-rw-r--r--runtime/ftplugin/dtd.vim10
1 files changed, 8 insertions, 2 deletions
diff --git a/runtime/ftplugin/dtd.vim b/runtime/ftplugin/dtd.vim
index 991118779b..3b15bda3c4 100644
--- a/runtime/ftplugin/dtd.vim
+++ b/runtime/ftplugin/dtd.vim
@@ -1,7 +1,7 @@
" Vim filetype plugin file
" Language: dtd
" Maintainer: Dan Sharp <dwsharp at hotmail dot com>
-" Last Changed: 2003 Sep 29
+" Last Changed: 30 Jun 2008
" URL: http://mywebpage.netscape.com/sharppeople/vim/ftplugin
if exists("b:did_ftplugin") | finish | endif
@@ -13,6 +13,12 @@ let s:save_cpo = &cpo
set cpo-=C
setlocal commentstring=<!--%s-->
+setlocal comments=s:<!--,m:\ \ \ \ \ ,e:-->
+
+setlocal formatoptions-=t
+if !exists("g:ft_dtd_autocomment") || (g:ft_dtd_autocomment == 1)
+ setlocal formatoptions+=croql
+endif
if exists("loaded_matchit")
let b:match_words = '<!--:-->,<!:>'
@@ -26,7 +32,7 @@ if has("gui_win32")
endif
" Undo the stuff we changed.
-let b:undo_ftplugin = "setlocal commentstring<" .
+let b:undo_ftplugin = "setlocal commentstring< comments< formatoptions<" .
\ " | unlet! b:matchwords b:browsefilter"
" Restore the saved compatibility options.