.tex files with Vim, but some files are recognized as
filetype=plaintex and others as
filetype=tex. Why is this? What is the trigger that recognizes the file as tex, which has the highlighting I want?
More than I ever wanted to know about this subject: http://vimdoc.sourceforge.net/htmldoc/filetype.html
Are you using the LaTeX-suite plugin? If so, then you probably want
in your .vimrc.
Why are some
The ft-tex-plugin section of the Vim filetype documentation lists the rules used by Vim (versions 7 and higher) to determine which filetype to use for
The last rule is important. If you create an empty
You can change the default behavior by setting the global variable