robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
2f5b8a0092
master
1" Vim filetype plugin file 2" Language: Tcl 3" Maintainer: Robert L Hicks <sigzero@gmail.com> 4" Latest Revision: 2009-05-01 5" 2024 Jan 14 by Vim Project (browsefilter) 6" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring') 7 8if exists ( "b:did_ftplugin" ) 9finish 10endif 11let b: did_ftplugin = 1 12 13" Make sure the continuation lines below do not cause problems in 14" compatibility mode. 15let s: cpo_save = & cpo 16set cpo -= C 17 18setlocal comments = :# 19setlocal commentstring = #\ %s 20setlocal formatoptions += croql 21 22" Change the browse dialog on Windows to show mainly Tcl-related files 23if ( has ( "gui_win32" ) || has ( "gui_gtk" )) && ! exists ( "b:browsefilter" ) 24let b: browsefilter = "Tcl Source Files (*.tcl)\t*.tcl\n" . 25 \"Tcl Test Files (*.test)\t*.test\n" 26if has ( "win32" ) 27let b: browsefilter .= "All Files (*.*)\t*\n" 28else 29let b: browsefilter .= "All Files (*)\t*\n" 30endif 31endif 32 33"----------------------------------------------------------------------------- 34 35" Undo the stuff we changed. 36let b: undo_ftplugin = "setlocal fo< com< cms< inc< inex< def< isf< kp<" . 37 \" | unlet! b:browsefilter" 38 39" Restore the saved compatibility options. 40let & cpo = s: cpo_save 41unlet s: cpo_save 42 43" vim: set et ts=4 sw=4 tw=78: