Somelauw . wrote:
I'm using latex and I have the problem that spellcheck works for main.tex,
but doesn't work for section1.tex, which is included by main.tex.

I'm not sure but I think the problem is that the spellchecker only works
between \begin{document} and \end{document}.
Actually, spell checking can take place inside any of the following regions:

 texDocZone              \begin{document}      ... '\end{document}
texPartZone             \begin{part}          ... '\end{part}
texChapterZone          \begin{chapter}       ... '\end{chapter}
texSectionZone          \begin{section}       ... '\end{section}
texSubSectionZone       \begin{subsection}    ... '\end{subsection}
texSubSubSectionZone    \begin{subsubsection} ... '\end{subsubsection}
texParaZone             \begin{paragraph}     ... '\end{paragraph}
texSubParaZone          \begin{subparagraph}  ... '\end{subparagraph}
texTitleZone            \begin{title}         ... '\end{title}
texTitleZone            \begin{author}        ... '\end{author}
texAbstractZone         \begin{abstract}      ... '\end{abstract}

I've now included an additional region to syntax/tex.vim

% spellcheck on
  (spellchecking is now on)
% spellcheck off

which is supported by syntax/tex.vim v82; you may get a copy from my website: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_TEX .

Regards,
C Campbell

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to