codekingpro/portable-devtools
114k
1" Vim filetype plugin file2" Language: tcsh3" Maintainer: Doug Kearns <dougkearns@gmail.com>4" Previous Maintainer: Dan Sharp5" Last Change: 2024 Jan 146 7if exists("b:did_ftplugin")8 finish9endif10 11let s:save_cpo = &cpo12set cpo-=C13 14" Define some defaults in case the included ftplugins don't set them.15let s:undo_ftplugin = ""16let s:browsefilter = "csh Files (*.csh)\t*.csh\n"17if has("win32")18 let s:browsefilter ..= "All Files (*.*)\t*\n"19else20 let s:browsefilter ..= "All Files (*)\t*\n"21endif22 23runtime! ftplugin/csh.vim ftplugin/csh_*.vim ftplugin/csh/*.vim24let b:did_ftplugin = 125 26" Override our defaults if these were set by an included ftplugin.27if exists("b:undo_ftplugin")28 let s:undo_ftplugin = b:undo_ftplugin29endif30if exists("b:browsefilter")31 let s:browsefilter = b:browsefilter32endif33 34if (has("gui_win32") || has("gui_gtk")) &&35 \ (!exists("b:browsefilter") || exists("b:csh_set_browsefilter"))36 let b:browsefilter = "tcsh Scripts (*.tcsh)\t*.tcsh\n" .. s:browsefilter37 let s:undo_ftplugin = "unlet! b:browsefilter | " .. s:undo_ftplugin38endif39 40let b:undo_ftplugin = s:undo_ftplugin41 42let &cpo = s:save_cpo43unlet s:save_cpo44 