xref: /vim-8.2.3635/runtime/ftplugin/dtd.vim (revision 5b8d8fdb)
1" Vim filetype plugin file
2" Language:	dtd
3" Maintainer:	Dan Sharp <dwsharp at hotmail dot com>
4" Last Changed: 2003 Sep 29
5" URL:		http://mywebpage.netscape.com/sharppeople/vim/ftplugin
6
7if exists("b:did_ftplugin") | finish | endif
8let b:did_ftplugin = 1
9
10" Make sure the continuation lines below do not cause problems in
11" compatibility mode.
12let s:save_cpo = &cpo
13set cpo-=C
14
15setlocal commentstring=<!--%s-->
16
17if exists("loaded_matchit")
18    let b:match_words = '<!--:-->,<!:>'
19endif
20
21" Change the :browse e filter to primarily show Java-related files.
22if has("gui_win32")
23    let  b:browsefilter="DTD Files (*.dtd)\t*.dtd\n" .
24		\	"XML Files (*.xml)\t*.xml\n" .
25		\	"All Files (*.*)\t*.*\n"
26endif
27
28" Undo the stuff we changed.
29let b:undo_ftplugin = "setlocal commentstring<" .
30		\     " | unlet! b:matchwords b:browsefilter"
31
32" Restore the saved compatibility options.
33let &cpo = s:save_cpo
34