Closing latex environments
maxfl opened this issue · comments
Maxim Gonchar commented
I was trying to add latex environment to endwise by adding the following code:
let b:endwise_addition = '\\end{\=submatch(1)}'
let b:endwise_addition = 'end'
let b:endwise_words = 'begin'
let b:endwise_pattern = '^\s*\\begin{\(.\+\)}.*$'
let b:endwise_syngroups = 'texBeginEndName'
to ftplugin/tex.vim and it fails.
I guess I completely do not understand how configuration is supposed to be done. The idea is to close the following block:
\begin{env}[optional]{parameters}
\end{env}
The block may be indented. Is it possible to add the latex support to the endwise?
Thanks!
Will Gray commented
Did you intend to open an issue on http://github.com/tpope/vim-endwise instead?
Maxim Gonchar commented
Oops, indeed, sorry. I've followed the link from vim-endwise to pathogen and mixed up the windows.