tcl.vim 1002 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. " Vim filetype plugin file
  2. " Language: Tcl
  3. " Maintainer: Robert L Hicks <sigzero@gmail.com>
  4. " Latest Revision: 2009-05-01
  5. if exists("b:did_ftplugin")
  6. finish
  7. endif
  8. let b:did_ftplugin = 1
  9. " Make sure the continuation lines below do not cause problems in
  10. " compatibility mode.
  11. let s:cpo_save = &cpo
  12. set cpo-=C
  13. setlocal comments=:#
  14. setlocal commentstring=#%s
  15. setlocal formatoptions+=croql
  16. " Change the browse dialog on Windows to show mainly Tcl-related files
  17. if has("gui_win32")
  18. let b:browsefilter = "Tcl Source Files (.tcl)\t*.tcl\n" .
  19. \ "Tcl Test Files (.test)\t*.test\n" .
  20. \ "All Files (*.*)\t*.*\n"
  21. endif
  22. "-----------------------------------------------------------------------------
  23. " Undo the stuff we changed.
  24. let b:undo_ftplugin = "setlocal fo< com< cms< inc< inex< def< isf< kp<" .
  25. \ " | unlet! b:browsefilter"
  26. " Restore the saved compatibility options.
  27. let &cpo = s:cpo_save
  28. unlet s:cpo_save
  29. " vim: set et ts=4 sw=4 tw=78: