blob: 85d3873b335441e43e0326d122ba550ffd0606c3 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim filetype plugin file
Bram Moolenaar22863042021-10-16 15:23:36 +01002" Language: tcsh
3" Maintainer: Doug Kearns <dougkearns@gmail.com>
Bram Moolenaar1588bc82022-03-08 21:35:07 +00004" Previous Maintainer: Dan Sharp
Bram Moolenaar22863042021-10-16 15:23:36 +01005" Last Change: 2021 Oct 15
Bram Moolenaar071d4272004-06-13 20:20:40 +00006
7if exists("b:did_ftplugin") | finish | endif
8
Bram Moolenaar071d4272004-06-13 20:20:40 +00009let s:save_cpo = &cpo
10set cpo-=C
11
12" Define some defaults in case the included ftplugins don't set them.
13let s:undo_ftplugin = ""
Bram Moolenaar22863042021-10-16 15:23:36 +010014let s:browsefilter = "csh Files (*.csh)\t*.csh\n" ..
Bram Moolenaar071d4272004-06-13 20:20:40 +000015 \ "All Files (*.*)\t*.*\n"
16
17runtime! ftplugin/csh.vim ftplugin/csh_*.vim ftplugin/csh/*.vim
18let b:did_ftplugin = 1
19
20" Override our defaults if these were set by an included ftplugin.
21if exists("b:undo_ftplugin")
22 let s:undo_ftplugin = b:undo_ftplugin
23endif
24if exists("b:browsefilter")
25 let s:browsefilter = b:browsefilter
26endif
27
Bram Moolenaar22863042021-10-16 15:23:36 +010028if (has("gui_win32") || has("gui_gtk"))
29 let b:browsefilter="tcsh Scripts (*.tcsh)\t*.tcsh\n" .. s:browsefilter
Bram Moolenaar071d4272004-06-13 20:20:40 +000030endif
31
Bram Moolenaar22863042021-10-16 15:23:36 +010032let b:undo_ftplugin = "unlet! b:browsefilter | " .. s:undo_ftplugin
Bram Moolenaar071d4272004-06-13 20:20:40 +000033
Bram Moolenaar071d4272004-06-13 20:20:40 +000034let &cpo = s:save_cpo
Bram Moolenaar84f72352012-03-11 15:57:40 +010035unlet s:save_cpo