initex.vim 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. " Last Change: Thu 23 May 2024 by Riley Bruins <ribru17@gmail.com> ('commentstring')
  7. " Only do this when not done yet for this buffer.
  8. if exists("b:did_ftplugin")
  9. finish
  10. endif
  11. " Don't load another plugin for this buffer.
  12. let b:did_ftplugin = 1
  13. " Avoid problems if running in 'compatible' mode.
  14. let s:save_cpo = &cpo
  15. set cpo&vim
  16. let b:undo_ftplugin = "setl com< cms< define< include< sua<"
  17. " Set 'comments' to format dashed lists in comments
  18. setlocal com=sO:%\ -,mO:%\ \ ,eO:%%,:%
  19. " Set 'commentstring' to recognize the % comment character:
  20. " (Thanks to Ajit Thakkar.)
  21. setlocal cms=%\ %s
  22. " Allow "[d" to be used to find a macro definition:
  23. let &l:define='\\\([egx]\|char\|mathchar\|count\|dimen\|muskip\|skip\|toks\)\='
  24. \ . 'def\|\\font\|\\\(future\)\=let'
  25. " Tell Vim to recognize \input bar :
  26. let &l:include = '\\input'
  27. setlocal suffixesadd=.tex
  28. let &cpo = s:save_cpo
  29. unlet s:save_cpo
  30. " vim:sts=2:sw=2: