heex.vim (982B)
1 " Elixir filetype plugin 2 " Language: HEEx 3 " Maintainer: Mitchell Hanberg <vimNOSPAM@mitchellhanberg.com> 4 " Last Change: 2022 Sep 21 5 " 2025 Apr 16 by Vim Project (set 'cpoptions' for line continuation, #17121) 6 7 if exists("b:did_ftplugin") 8 finish 9 endif 10 let b:did_ftplugin = 1 11 12 let s:cpo_save = &cpo 13 set cpo&vim 14 15 setlocal shiftwidth=2 softtabstop=2 expandtab 16 17 setlocal comments=:<%!-- 18 setlocal commentstring=<%!--\ %s\ --%> 19 20 let b:undo_ftplugin = 'set sw< sts< et< com< cms<' 21 22 " HTML: thanks to Johannes Zellner and Benji Fisher. 23 if exists("loaded_matchit") && !exists("b:match_words") 24 let b:match_ignorecase = 1 25 let b:match_words = '<%\{-}!--:--%\{-}>,' .. 26 \ '<:>,' .. 27 \ '<\@<=[ou]l\>[^>]*\%(>\|$\):<\@<=li\>:<\@<=/[ou]l>,' .. 28 \ '<\@<=dl\>[^>]*\%(>\|$\):<\@<=d[td]\>:<\@<=/dl>,' .. 29 \ '<\@<=\([^/!][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>' 30 let b:undo_ftplugin ..= " | unlet! b:match_ignorecase b:match_words" 31 endif 32 33 let &cpo = s:cpo_save 34 unlet s:cpo_save