robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
0bb2f5cc08
master
1" Vim filetype plugin file 2" Language: tcsh 3" Maintainer: Doug Kearns <dougkearns@gmail.com> 4" Previous Maintainer: Dan Sharp 5" Last Change: 2024 Jan 14 6 7if exists ( "b:did_ftplugin" ) 8finish 9endif 10 11let s: save_cpo = & cpo 12set cpo -= C 13 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" ) 18let s: browsefilter ..= "All Files (*.*)\t*\n" 19else 20let s: browsefilter ..= "All Files (*)\t*\n" 21endif 22 23runtime ! ftplugin/csh[.]{vim,lua} ftplugin/csh_*.{vim,lua} ftplugin/csh/*.{vim,lua} 24let b: did_ftplugin = 1 25 26" Override our defaults if these were set by an included ftplugin. 27if exists ( "b:undo_ftplugin" ) 28let s: undo_ftplugin = b: undo_ftplugin 29endif 30if exists ( "b:browsefilter" ) 31let s: browsefilter = b: browsefilter 32endif 33 34if ( has ( "gui_win32" ) || has ( "gui_gtk" )) && 35 \( ! exists ( "b:browsefilter" ) || exists ( "b:csh_set_browsefilter" )) 36let b: browsefilter = "tcsh Scripts (*.tcsh)\t*.tcsh\n" .. s: browsefilter 37let s: undo_ftplugin = "unlet! b:browsefilter | " .. s: undo_ftplugin 38endif 39 40let b: undo_ftplugin = s: undo_ftplugin 41 42let & cpo = s: save_cpo 43unlet s: save_cpo