Merged from the latest developing branch.
[MacVim/jjgod.git] / runtime / ftplugin / dtd.vim
blob991118779bd8588d0b08a0bde3372958d399486b
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
7 if exists("b:did_ftplugin") | finish | endif
8 let b:did_ftplugin = 1
10 " Make sure the continuation lines below do not cause problems in
11 " compatibility mode.
12 let s:save_cpo = &cpo
13 set cpo-=C
15 setlocal commentstring=<!--%s-->
17 if exists("loaded_matchit")
18     let b:match_words = '<!--:-->,<!:>'
19 endif
21 " Change the :browse e filter to primarily show Java-related files.
22 if 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"
26 endif
28 " Undo the stuff we changed.
29 let b:undo_ftplugin = "setlocal commentstring<" .
30                 \     " | unlet! b:matchwords b:browsefilter"
32 " Restore the saved compatibility options.
33 let &cpo = s:save_cpo