blob: 595fc657b9873a003fefb3335cd67c22e098ec28 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim filetype plugin file
Doug Kearns93197fd2024-01-14 20:59:02 +01002" 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
Doug Kearns93197fd2024-01-14 20:59:02 +01007" Last Change: 2009 Jan 20
8" 2024 Jan 14 by Vim Project (browsefilter)
Bram Moolenaar071d4272004-06-13 20:20:40 +00009
10if exists("b:did_ftplugin") | finish | endif
11
12" Make sure the continuation lines below do not cause problems in
13" compatibility mode.
14let s:save_cpo = &cpo
15set cpo-=C
16
17" Define some defaults in case the included ftplugins don't set them.
18let s:undo_ftplugin = ""
Doug Kearns93197fd2024-01-14 20:59:02 +010019let s:browsefilter = "Bourne Shell Files (*.sh)\t*.sh\n"
20if has("win32")
21 let s:browsefilter .= "All Files (*.*)\t*\n"
22else
23 let s:browsefilter .= "All Files (*)\t*\n"
24endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000025let s:match_words = ""
26
27runtime! ftplugin/sh.vim ftplugin/sh_*.vim ftplugin/sh/*.vim
28let b:did_ftplugin = 1
29
30" Override our defaults if these were set by an included ftplugin.
31if exists("b:undo_ftplugin")
32 let s:undo_ftplugin = b:undo_ftplugin
33endif
34if exists("b:browsefilter")
35 let s:browsefilter = b:browsefilter
36endif
37
38" Change the :browse e filter to primarily show configure-related files.
Doug Kearns93197fd2024-01-14 20:59:02 +010039if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
Bram Moolenaar8299df92004-07-10 09:47:34 +000040 let b:browsefilter="Configure Scripts (configure.*, config.*)\tconfigure*;config.*\n" .
Bram Moolenaar071d4272004-06-13 20:20:40 +000041 \ s:browsefilter
42endif
43
44" Undo the stuff we changed.
45let b:undo_ftplugin = "unlet! b:browsefilter | " . b:undo_ftplugin
46
47" Restore the saved compatibility options.
48let &cpo = s:save_cpo
Bram Moolenaar84f72352012-03-11 15:57:40 +010049unlet s:save_cpo