3

I'm using vim with vim-latexfor editing my LaTeX-files. I notice that the \begin{env} and \end{env} doesn't colorize when they are in a macro parameter (the \vary command and question environment is part of exsheets package):

\vary{
  \begin{question}
  \end{question}
}{
  \begin{question}
  \end{question}
}

I've attached a sample picture: explanation of my problem

What should I do to vim colorize the \begin{question} inside \vary?

5
  • vim-latexsuite doesn't change your syntax highlighting, so this would be a question directly about the vim syntax file you have for TeX files. Jun 3 '16 at 1:13
  • I thought vim-latexsuite provides a syntax file. Do you've any idea how can I solve it?
    – uzsolt
    Jun 3 '16 at 16:17
  • On my vim setup (vim 7.4 on Ubuntu, default syntax highlighting), I don't get the error you have; have you added different syntax highlighting? Or perhaps you used a version of vim-latexsuite that provided a syntax file, which would be strange to discover. Jun 3 '16 at 18:45
  • 1
    I renamed ~/.vim (so vim doesn't use any user-based file) but same behavior.
    – uzsolt
    Jun 5 '16 at 7:36
  • Ah, I think I see. My syntax highlighting doesn't distinguish the cases you were looking at (since I'm using terminal vim, not gvim), so it "looked right" to me. I'm sorry I led you astray. In any case, it's useful to know that it's an issue for default vim too, I think. Jun 5 '16 at 14:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.