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