blob: 73136cbc66a0cb33905b0d537f406aeed516e93c [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim filetype plugin file
2" Language: config
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 = "Bourne Shell Files (*.sh)\t*.sh\n" .
19 \ "All Files (*.*)\t*.*\n"
20let s:match_words = ""
21
22runtime! ftplugin/sh.vim ftplugin/sh_*.vim ftplugin/sh/*.vim
23let b:did_ftplugin = 1
24
25" Override our defaults if these were set by an included ftplugin.
26if exists("b:undo_ftplugin")
27 let s:undo_ftplugin = b:undo_ftplugin
28endif
29if exists("b:browsefilter")
30 let s:browsefilter = b:browsefilter
31endif
32
33" Change the :browse e filter to primarily show configure-related files.
34if has("gui_win32")
Bram Moolenaar8299df92004-07-10 09:47:34 +000035 let b:browsefilter="Configure Scripts (configure.*, config.*)\tconfigure*;config.*\n" .
Bram Moolenaar071d4272004-06-13 20:20:40 +000036 \ s:browsefilter
37endif
38
39" Undo the stuff we changed.
40let b:undo_ftplugin = "unlet! b:browsefilter | " . b:undo_ftplugin
41
42" Restore the saved compatibility options.
43let &cpo = s:save_cpo
Bram Moolenaar84f72352012-03-11 15:57:40 +010044unlet s:save_cpo