\documentclass{article}
\begin{document}
The \verb!document! environment starts with \verb!\begin{document}!.
\end{document}
Using <F5> to expand an environment between \begin{document} and \verb!\begin{document}! will insert a \usepackage{}, while below \verb!\begin{document}! it will (correctly) insert an environment.
Is it possible to make vim-latex-suite use the first occurrence of \begin{document} to indicate the beginning of the document?
This was quite a silly issue with the search flags in the ´Tex_FastEnvironmentInsert´-function. This function also failed if the ´wrapscan´ option was not set.
Look at the following minimal example:
Using
<F5>
to expand an environment between\begin{document}
and\verb!\begin{document}!
will insert a\usepackage{}
, while below\verb!\begin{document}!
it will (correctly) insert an environment.Is it possible to make
vim-latex-suite
use the first occurrence of\begin{document}
to indicate the beginning of the document?