blob: 7d3efbb390d0c10d0e00028a0c745795b3565e1b [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim filetype plugin file
2" Language: xsd
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 = ""
18let s:browsefilter = "XML Files (*.xml)\t*.xml\n" .
19 \ "All Files (*.*)\t*.*\n"
20
21runtime! ftplugin/xml.vim ftplugin/xml_*.vim ftplugin/xml/*.vim
22let b:did_ftplugin = 1
23
24" Override our defaults if these were set by an included ftplugin.
25if exists("b:undo_ftplugin")
26 let s:undo_ftplugin = b:undo_ftplugin
27endif
28if exists("b:browsefilter")
29 let s:browsefilter = b:browsefilter
30endif
31
32" Change the :browse e filter to primarily show xsd-related files.
33if has("gui_win32")
34 let b:browsefilter="XSD Files (*.xsd)\t*.xsd\n" . s:browsefilter
35endif
36
37let b:undo_ftplugin = "unlet! b:browsefilter | " . s:undo_ftplugin
38
39" Restore the saved compatibility options.
40let &cpo = s:save_cpo
Bram Moolenaar84f72352012-03-11 15:57:40 +010041unlet s:save_cpo