blob: aee07ca4b92fc7b968cc7f20a63e882a9498b5de [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim filetype plugin file
2" Language: ant
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 Ant-related files.
33if has("gui_win32")
34 let b:browsefilter = "Build Files (build.xml)\tbuild.xml\n" .
35 \ "Java Files (*.java)\t*.java\n" .
36 \ "Properties Files (*.prop*)\t*.prop*\n" .
37 \ "Manifest Files (*.mf)\t*.mf\n" .
38 \ s:browsefilter
39endif
40
41" Undo the stuff we changed.
42let b:undo_ftplugin = "unlet! b:browsefilter | " . s:undo_ftplugin
43
44" Restore the saved compatibility options.
45let &cpo = s:save_cpo
Bram Moolenaar84f72352012-03-11 15:57:40 +010046unlet s:save_cpo