blob: b4db1549994da3ebc69a236710836652d4ec1153 [file] [log] [blame]
Bram Moolenaarb529cfb2022-07-25 15:42:07 +01001" Vim filetype plugin file
2" Language: Expect
3" Maintainer: Doug Kearns <dougkearns@gmail.com>
Doug Kearns93197fd2024-01-14 20:59:02 +01004" Last Change: 2024 Jan 14
Bram Moolenaarb529cfb2022-07-25 15:42:07 +01005
6if exists("b:did_ftplugin")
7 finish
8endif
9
10" Syntax is similar to Tcl
11runtime! ftplugin/tcl.vim
12
13let s:cpo_save = &cpo
14set cpo&vim
15
16if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
Doug Kearns93197fd2024-01-14 20:59:02 +010017 let b:browsefilter = "Expect Command Files (*.exp)\t*.exp\n"
18 if has("win32")
19 let b:browsefilter ..= "All Files (*.*)\t*\n"
20 else
21 let b:browsefilter ..= "All Files (*)\t*\n"
22 endif
Bram Moolenaarb529cfb2022-07-25 15:42:07 +010023endif
24
25let &cpo = s:cpo_save
26unlet s:cpo_save
27
28" vim: nowrap sw=2 sts=2 ts=8