Skip to content

Closing latex environments #41

@maxfl

Description

@maxfl

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions