home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / runtime / ftplugin / framescript.vim < prev    next >
Encoding:
Text File  |  2010-08-15  |  768 b   |  31 lines

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