m3quake.vim 957 B

123456789101112131415161718192021222324252627282930313233343536
  1. " Vim filetype plugin file
  2. " Language: Modula-3 Quake
  3. " Maintainer: Doug Kearns <dougkearns@gmail.com>
  4. " Last Change: 2022 June 12
  5. if exists("b:did_ftplugin")
  6. finish
  7. endif
  8. let b:did_ftplugin = 1
  9. let s:cpo_save = &cpo
  10. set cpo&vim
  11. setlocal comments=s1:/*,mb:*,ex:*/,:%
  12. setlocal commentstring=%\ %s
  13. setlocal formatoptions-=t formatoptions+=croql
  14. let b:undo_ftplugin = "setl fo< com< cms<"
  15. if exists("loaded_matchit") && !exists("b:match_words")
  16. let b:match_words = '\<\%(proc\|if\|foreach\)\>:\<else\>:\<end\>'
  17. let b:undo_ftplugin ..= " | unlet! b:match_words"
  18. endif
  19. if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
  20. let b:browsefilter = "Modula-3 Quake Source Files (*.quake)\t*.quake\n" ..
  21. \ "All Files (*.*)\t*.*\n"
  22. let b:m3quake_set_browsefilter = 1
  23. let b:undo_ftplugin ..= " | unlet! b:browsefilter b:m3quake_set_browsefilter"
  24. endif
  25. let &cpo = s:cpo_save
  26. unlet s:cpo_save
  27. " vim: nowrap sw=2 sts=2 ts=8 noet: