vim-endwise
vim-endwise copied to clipboard
LaTex
Please add support for LaTex........
This is not totally tested yet, but try adding this to endwise.vim
autocmd FileType tex
\ let b:endwise_addition = '\="\\end" . matchstr(submatch(0), "{.\\{-}}")' |
\ let b:endwise_words = 'begin' |
\ let b:endwise_pattern = '\\begin{.\{-}}' |
\ let b:endwise_syngroups = 'texSection,texBeginEnd,texBeginEndName,texStatement'
Edit: fixed a little after some testing.