framescript.vim 780 B

12345678910111213141516171819202122232425262728293031
  1. " Vim ftplugin file
  2. " Language: FrameScript
  3. " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
  4. " Latest Revision: 2008-07-19
  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. let b:undo_ftplugin = "setl com< cms< fo< inc< | unlet! b:matchwords"
  12. setlocal comments=s1:/*,mb:*,ex:*/,:// commentstring=/*\ %s\ */
  13. setlocal formatoptions-=t formatoptions+=croql
  14. setlocal include=^\\s*<#Include
  15. if exists("loaded_matchit")
  16. let s:not_end = '\c\%(\<End\)\@<!'
  17. let b:match_words =
  18. \ s:not_end . '\<If\>:\c\<ElseIf\>:\c\<Else\>:\c\<EndIf\>,' .
  19. \ s:not_end . '\<Loop\>:\c\<EndLoop\>' .
  20. \ s:not_end . '\<Sub\>:\c\<EndSub\>'
  21. unlet s:not_end
  22. endif
  23. let &cpo = s:cpo_save
  24. unlet s:cpo_save