tcsh.vim 961 B

123456789101112131415161718192021222324252627282930313233343536
  1. " Vim filetype plugin file
  2. " Language: tcsh
  3. " Maintainer: Doug Kearns <dougkearns@gmail.com>
  4. " Previous Maintainer: Dan Sharp
  5. " Last Change: 2021 Oct 15
  6. if exists("b:did_ftplugin") | finish | endif
  7. let s:save_cpo = &cpo
  8. set cpo-=C
  9. " Define some defaults in case the included ftplugins don't set them.
  10. let s:undo_ftplugin = ""
  11. let s:browsefilter = "csh Files (*.csh)\t*.csh\n" ..
  12. \ "All Files (*.*)\t*.*\n"
  13. runtime! ftplugin/csh.vim ftplugin/csh_*.vim ftplugin/csh/*.vim
  14. let b:did_ftplugin = 1
  15. " Override our defaults if these were set by an included ftplugin.
  16. if exists("b:undo_ftplugin")
  17. let s:undo_ftplugin = b:undo_ftplugin
  18. endif
  19. if exists("b:browsefilter")
  20. let s:browsefilter = b:browsefilter
  21. endif
  22. if (has("gui_win32") || has("gui_gtk"))
  23. let b:browsefilter="tcsh Scripts (*.tcsh)\t*.tcsh\n" .. s:browsefilter
  24. endif
  25. let b:undo_ftplugin = "unlet! b:browsefilter | " .. s:undo_ftplugin
  26. let &cpo = s:save_cpo
  27. unlet s:save_cpo