1 " Vim filetype plugin file
3 " Maintainer: Dan Sharp <dwsharp at hotmail dot com>
4 " Last Changed: 2004 Jul 08
5 " URL: http://mywebpage.netscape.com/sharppeople/vim/ftplugin
7 if exists("b:did_ftplugin") | finish | endif
9 " Make sure the continuation lines below do not cause problems in
14 " Define some defaults in case the included ftplugins don't set them.
15 let s:undo_ftplugin = ""
16 let s:browsefilter = "HTML Files (*.html, *.htm)\t*.html;*.htm\n" .
17 \ "XML Files (*.xml)\t*.xml\n" .
18 \ "All Files (*.*)\t*.*\n"
19 let s:match_words = ""
21 runtime! ftplugin/xml.vim ftplugin/xml_*.vim ftplugin/xml/*.vim
24 " Override our defaults if these were set by an included ftplugin.
25 if exists("b:undo_ftplugin")
26 let s:undo_ftplugin = b:undo_ftplugin
29 if exists("b:browsefilter")
30 let s:browsefilter = b:browsefilter
33 if exists("b:match_words")
34 let s:match_words = b:match_words
38 runtime! ftplugin/html.vim ftplugin/html_*.vim ftplugin/html/*.vim
39 let b:did_ftplugin = 1
41 " Combine the new set of values with those previously included.
42 if exists("b:undo_ftplugin")
43 let s:undo_ftplugin = b:undo_ftplugin . " | " . s:undo_ftplugin
45 if exists("b:browsefilter")
46 let s:browsefilter = b:browsefilter . s:browsefilter
48 if exists("b:match_words")
49 let s:match_words = b:match_words . "," . s:match_words
52 " Load the combined list of match_words for matchit.vim
53 if exists("loaded_matchit")
54 let b:match_words = s:match_words
57 " Change the :browse e filter to primarily show tcsh-related files.
59 let b:browsefilter="XHTML files (*.xhtml, *.xhtm)\t*.xhtml;*.xhtm\n" . s:browsefilter
62 " Undo the stuff we changed.
63 let b:undo_ftplugin = "unlet! b:browsefilter b:match_words | " . s:undo_ftplugin
65 " Restore the saved compatibility options.