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 / plaintex.vim < prev    next >
Encoding:
Text File  |  2012-05-31  |  1.2 KB  |  38 lines

  1. " plain TeX filetype plugin
  2. " Language:     plain TeX (ft=plaintex)
  3. " Maintainer:   Benji Fisher, Ph.D. <benji@member.AMS.org>
  4. " Version:    1.1
  5. " Last Change:    Wed 19 Apr 2006
  6.  
  7. " Only do this when not done yet for this buffer.
  8. if exists("b:did_ftplugin")
  9.   finish
  10. endif
  11.  
  12. " Start with initex.  This will also define b:did_ftplugin and b:undo_ftplugin .
  13. source $VIMRUNTIME/ftplugin/initex.vim
  14.  
  15. " Avoid problems if running in 'compatible' mode.
  16. let s:save_cpo = &cpo
  17. set cpo&vim
  18.  
  19. let b:undo_ftplugin .= "| unlet! b:match_ignorecase b:match_skip b:match_words"
  20.  
  21. " Allow "[d" to be used to find a macro definition:
  22. let &l:define .= '\|\\new\(count\|dimen\|skip\|muskip\|box\|toks\|read\|write'
  23.     \ .    '\|fam\|insert\)'
  24.  
  25. " The following lines enable the macros/matchit.vim plugin for
  26. " extended matching with the % key.
  27. " There is no default meaning for \(...\) etc., but many users define one.
  28. if exists("loaded_matchit")
  29.   let b:match_ignorecase = 0
  30.     \ | let b:match_skip = 'r:\\\@<!\%(\\\\\)*%'
  31.     \ | let b:match_words = '(:),\[:],{:},\\(:\\),\\\[:\\],\\{:\\}'
  32. endif " exists("loaded_matchit")
  33.  
  34. let &cpo = s:save_cpo
  35. unlet s:save_cpo
  36.  
  37. " vim:sts=2:sw=2:
  38.