xref: /vim-8.2.3635/runtime/ftplugin/tcsh.vim (revision 2286304c)
1" Vim filetype plugin file
2" Language:		tcsh
3" Maintainer:		Doug Kearns <[email protected]>
4" Previous Maintainer:	Dan Sharp <dwsharp at users dot sourceforge dot net>
5" Last Change:		2021 Oct 15
6
7if exists("b:did_ftplugin") | finish | endif
8
9let 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 = ""
14let s:browsefilter = "csh Files (*.csh)\t*.csh\n" ..
15	    \	     "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
28if (has("gui_win32") || has("gui_gtk"))
29    let  b:browsefilter="tcsh Scripts (*.tcsh)\t*.tcsh\n" .. s:browsefilter
30endif
31
32let b:undo_ftplugin = "unlet! b:browsefilter | " .. s:undo_ftplugin
33
34let &cpo = s:save_cpo
35unlet s:save_cpo
36