blob: c5bc3033eb3fd8694267012186110994e422b60d [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
5
6if exists("b:did_ftplugin")
7 finish
8endif
9let b:did_ftplugin = 1
10
11" Make sure the continuation lines below do not cause problems in
12" compatibility mode.
13let s:cpo_save = &cpo
14set cpo-=C
15
16setlocal comments=:#
17setlocal commentstring=#%s
18setlocal formatoptions+=croql
19
20" Change the browse dialog on Windows to show mainly Tcl-related files
21if has("gui_win32")
22 let b:browsefilter = "Tcl Source Files (.tcl)\t*.tcl\n" .
23 \ "Tcl Test Files (.test)\t*.test\n" .
24 \ "All Files (*.*)\t*.*\n"
25endif
26
27"-----------------------------------------------------------------------------
28
29" Undo the stuff we changed.
30let b:undo_ftplugin = "setlocal fo< com< cms< inc< inex< def< isf< kp<" .
31 \ " | unlet! b:browsefilter"
32
33" Restore the saved compatibility options.
34let &cpo = s:cpo_save
35
36" vim: set et ts=4 sw=4 tw=78: