poke.vim 853 B

12345678910111213141516171819202122232425262728293031323334353637
  1. " Vim filetype plugin file
  2. " Language: GNU Poke
  3. " Maintainer: Doug Kearns <dougkearns@gmail.com>
  4. " Last Change: 2024 Jan 14
  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. let b:undo_ftplugin = "setl fo< com< cms< inc< sua<"
  17. if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
  18. let b:browsefilter = "Poke Files (*.pk)\t*.pk\n"
  19. if has("win32")
  20. let b:browsefilter ..= "All Files (*.*)\t*\n"
  21. else
  22. let b:browsefilter ..= "All Files (*)\t*\n"
  23. endif
  24. let b:undo_ftplugin ..= " | unlet! b:browsefilter"
  25. endif
  26. let &cpo = s:cpo_save
  27. unlet s:cpo_save
  28. " vim: nowrap sw=2 sts=2 ts=8