blob: 6f16b1a0f44e25abb5750c52c5d65100b02fcc10 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim filetype plugin file
2" Language: svg
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 xml-related files.
33if has("gui_win32")
34 let b:browsefilter="SVG Files (*.svg)\t*.svg\n" . s:browsefilter
35endif
36
37" Undo the stuff we changed.
38let b:undo_ftplugin = "unlet! b:browsefilter | " . s:undo_ftplugin
39
40" Restore the saved compatibility options.
41let &cpo = s:save_cpo
Bram Moolenaar84f72352012-03-11 15:57:40 +010042unlet s:save_cpo