blob: d2a1c0b566d784dc92c331bf7141c394c9ac7c08 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim filetype plugin file
2" Language: xhtml
Bram Moolenaar1588bc82022-03-08 21:35:07 +00003"
4" This runtime file is looking for a new maintainer.
5"
6" Former maintainer: Dan Sharp
Bram Moolenaar5c736222010-01-06 20:54:52 +01007" Last Changed: 20 Jan 2009
Bram Moolenaar071d4272004-06-13 20:20:40 +00008
9if exists("b:did_ftplugin") | finish | endif
10
11" Make sure the continuation lines below do not cause problems in
12" compatibility mode.
13let s:save_cpo = &cpo
14set cpo-=C
15
16" Define some defaults in case the included ftplugins don't set them.
17let s:undo_ftplugin = ""
Bram Moolenaar8299df92004-07-10 09:47:34 +000018let s:browsefilter = "HTML Files (*.html, *.htm)\t*.html;*.htm\n" .
Bram Moolenaar071d4272004-06-13 20:20:40 +000019 \ "XML Files (*.xml)\t*.xml\n" .
20 \ "All Files (*.*)\t*.*\n"
21let s:match_words = ""
22
23runtime! ftplugin/xml.vim ftplugin/xml_*.vim ftplugin/xml/*.vim
24unlet b:did_ftplugin
25
26" Override our defaults if these were set by an included ftplugin.
27if exists("b:undo_ftplugin")
28 let s:undo_ftplugin = b:undo_ftplugin
29 unlet b:undo_ftplugin
30endif
31if exists("b:browsefilter")
32 let s:browsefilter = b:browsefilter
33 unlet b:browsefilter
34endif
35if exists("b:match_words")
36 let s:match_words = b:match_words
37 unlet b:match_words
38endif
39
40runtime! ftplugin/html.vim ftplugin/html_*.vim ftplugin/html/*.vim
41let b:did_ftplugin = 1
42
43" Combine the new set of values with those previously included.
44if exists("b:undo_ftplugin")
45 let s:undo_ftplugin = b:undo_ftplugin . " | " . s:undo_ftplugin
46endif
47if exists("b:browsefilter")
48 let s:browsefilter = b:browsefilter . s:browsefilter
49endif
50if exists("b:match_words")
51 let s:match_words = b:match_words . "," . s:match_words
52endif
53
54" Load the combined list of match_words for matchit.vim
55if exists("loaded_matchit")
56 let b:match_words = s:match_words
57endif
58
59" Change the :browse e filter to primarily show tcsh-related files.
60if has("gui_win32")
Bram Moolenaar8299df92004-07-10 09:47:34 +000061 let b:browsefilter="XHTML files (*.xhtml, *.xhtm)\t*.xhtml;*.xhtm\n" . s:browsefilter
Bram Moolenaar071d4272004-06-13 20:20:40 +000062endif
63
64" Undo the stuff we changed.
65let b:undo_ftplugin = "unlet! b:browsefilter b:match_words | " . s:undo_ftplugin
66
67" Restore the saved compatibility options.
68let &cpo = s:save_cpo
Bram Moolenaar84f72352012-03-11 15:57:40 +010069unlet s:save_cpo