poke.vim 744 B

123456789101112131415161718192021222324252627282930313233
  1. " Vim filetype plugin file
  2. " Language: GNU Poke
  3. " Maintainer: Doug Kearns <dougkearns@gmail.com>
  4. " Last Change: 2021 March 11
  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=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
  12. setlocal commentstring=//\ %s
  13. setlocal formatoptions-=t formatoptions+=croql
  14. setlocal include=load
  15. setlocal suffixesadd=.pk
  16. if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
  17. let b:browsefilter = "Poke Files (*.pk)\t*.pk\n" .
  18. \ "All Files (*.*)\t*.*\n"
  19. endif
  20. let b:undo_ftplugin = "setl fo< com< cms< inc< sua<" .
  21. \ " | unlet! b:browsefilter"
  22. let &cpo = s:cpo_save
  23. unlet s:cpo_save
  24. " vim: nowrap sw=2 sts=2 ts=8