expect.vim 596 B

1234567891011121314151617181920212223242526272829
  1. " Vim filetype plugin file
  2. " Language: Expect
  3. " Maintainer: Doug Kearns <dougkearns@gmail.com>
  4. " Last Change: 2024 Jan 14
  5. if exists("b:did_ftplugin")
  6. finish
  7. endif
  8. " Syntax is similar to Tcl
  9. runtime! ftplugin/tcl.vim
  10. let s:cpo_save = &cpo
  11. set cpo&vim
  12. if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
  13. let b:browsefilter = "Expect Command Files (*.exp)\t*.exp\n"
  14. if has("win32")
  15. let b:browsefilter ..= "All Files (*.*)\t*\n"
  16. else
  17. let b:browsefilter ..= "All Files (*)\t*\n"
  18. endif
  19. endif
  20. let &cpo = s:cpo_save
  21. unlet s:cpo_save
  22. " vim: nowrap sw=2 sts=2 ts=8