vim-endwise icon indicating copy to clipboard operation
vim-endwise copied to clipboard

LaTex

Open Arafat245 opened this issue 9 years ago • 1 comments

Please add support for LaTex........

Arafat245 avatar Feb 05 '16 16:02 Arafat245

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.

elliotpatros avatar Oct 25 '18 03:10 elliotpatros