blob: fa900096c04528e7536076af27ea843604f5f876 [file] [log] [blame]
Bram Moolenaar5c736222010-01-06 20:54:52 +01001" Vim filetype plugin file
2" Language: Tcl
3" Maintainer: Robert L Hicks <sigzero@gmail.com>
4" Latest Revision: 2009-05-01
Doug Kearns93197fd2024-01-14 20:59:02 +01005" 2024 Jan 14 by Vim Project (browsefilter)
Bram Moolenaar5c736222010-01-06 20:54:52 +01006
7if exists("b:did_ftplugin")
8 finish
9endif
10let b:did_ftplugin = 1
11
12" Make sure the continuation lines below do not cause problems in
13" compatibility mode.
14let s:cpo_save = &cpo
15set cpo-=C
16
17setlocal comments=:#
18setlocal commentstring=#%s
19setlocal formatoptions+=croql
20
21" Change the browse dialog on Windows to show mainly Tcl-related files
Doug Kearns93197fd2024-01-14 20:59:02 +010022if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
23 let b:browsefilter = "Tcl Source Files (*.tcl)\t*.tcl\n" .
24 \ "Tcl Test Files (*.test)\t*.test\n"
25 if has("win32")
26 let b:browsefilter .= "All Files (*.*)\t*\n"
27 else
28 let b:browsefilter .= "All Files (*)\t*\n"
29 endif
Bram Moolenaar5c736222010-01-06 20:54:52 +010030endif
31
32"-----------------------------------------------------------------------------
33
34" Undo the stuff we changed.
35let b:undo_ftplugin = "setlocal fo< com< cms< inc< inex< def< isf< kp<" .
36 \ " | unlet! b:browsefilter"
37
38" Restore the saved compatibility options.
39let &cpo = s:cpo_save
Bram Moolenaar84f72352012-03-11 15:57:40 +010040unlet s:cpo_save
Bram Moolenaar5c736222010-01-06 20:54:52 +010041
42" vim: set et ts=4 sw=4 tw=78: