I'm learning to use Vim with vim-latex and I'm wondering when does the plugin actually activates once I open a file.
My intuition tells me that any file with the .tex extension should do it, but if I open a new file in the terminal with
vim test.tex
The empty file is open but the plugin is not activated. Furthermore, if I save, quit and reopen, it is still not activated.
I've noticed it kicks in when I write the \begin{document} ... \end{document} environments and then I save, quit and reopen.
Is this normal behavior? My purpose is to be able to open a new file and then immediately load a .tex template using vim-latex.
test.tex
, it's name istex_latexSuite.vim
plaintex
and the other istex
. The latter is more desirable for Latex files but Vim won't know if the file is Latex or PlainTex if you have no content in the file. That's why the plugin, which depends on the filetype autocommand of Tex filetype, is triggered after the file is recognized as a Latex document. So, to answer your question, the behavior is completely normal, even though I have no idea why there is a plaintex filetype and who uses that.:autocmd FileType plaintex set ft=tex
. But report back here what happens cause you would need some fine tuning to use that as a long term solution.