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 / dos / ftplugin / context.vim < prev    next >
Encoding:
Text File  |  2010-08-15  |  990 b   |  36 lines

  1. " Vim filetype plugin file
  2. " Language:         ConTeXt typesetting engine
  3. " Maintainer:       Nikolai Weibull <now@bitwi.se>
  4. " Latest Revision:  2008-07-09
  5.  
  6. if exists("b:did_ftplugin")
  7.   finish
  8. endif
  9. let b:did_ftplugin = 1
  10.  
  11. let s:cpo_save = &cpo
  12. set cpo&vim
  13.  
  14. let b:undo_ftplugin = "setl com< cms< def< inc< sua< fo<"
  15.  
  16. setlocal comments=b:%D,b:%C,b:%M,:% commentstring=%\ %s formatoptions+=tcroql
  17.  
  18. let &l:define='\\\%([egx]\|char\|mathchar\|count\|dimen\|muskip\|skip\|toks\)\='
  19.         \ .     'def\|\\font\|\\\%(future\)\=let'
  20.         \ . '\|\\new\%(count\|dimen\|skip\|muskip\|box\|toks\|read\|write'
  21.         \ .     '\|fam\|insert\|if\)'
  22.  
  23. let &l:include = '^\s*\%(input\|component\)'
  24.  
  25. setlocal suffixesadd=.tex
  26.  
  27. if exists("loaded_matchit")
  28.   let b:match_ignorecase = 0
  29.   let b:match_skip = 'r:\\\@<!\%(\\\\\)*%'
  30.   let b:match_words = '(:),\[:],{:},\\(:\\),\\\[:\\],' .
  31.         \ '\\start\(\a\+\):\\stop\1'
  32. endif
  33.  
  34. let &cpo = s:cpo_save
  35. unlet s:cpo_save
  36.