initex.vim 1005 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. " filetype plugin for TeX and variants
  2. " Language: TeX (ft=initex)
  3. " Maintainer: Benji Fisher, Ph.D. <benji@member.AMS.org>
  4. " Version: 1.0
  5. " Last Change: Wed 19 Apr 2006
  6. " Only do this when not done yet for this buffer.
  7. if exists("b:did_ftplugin")
  8. finish
  9. endif
  10. " Don't load another plugin for this buffer.
  11. let b:did_ftplugin = 1
  12. " Avoid problems if running in 'compatible' mode.
  13. let s:save_cpo = &cpo
  14. set cpo&vim
  15. let b:undo_ftplugin = "setl com< cms< define< include< sua<"
  16. " Set 'comments' to format dashed lists in comments
  17. setlocal com=sO:%\ -,mO:%\ \ ,eO:%%,:%
  18. " Set 'commentstring' to recognize the % comment character:
  19. " (Thanks to Ajit Thakkar.)
  20. setlocal cms=%%s
  21. " Allow "[d" to be used to find a macro definition:
  22. let &l:define='\\\([egx]\|char\|mathchar\|count\|dimen\|muskip\|skip\|toks\)\='
  23. \ . 'def\|\\font\|\\\(future\)\=let'
  24. " Tell Vim to recognize \input bar :
  25. let &l:include = '\\input'
  26. setlocal suffixesadd=.tex
  27. let &cpo = s:save_cpo
  28. unlet s:save_cpo
  29. " vim:sts=2:sw=2: