When opening a new Buffer named <somthing>.tex the filetype in vim is
set to "plaintex" (viewable via ":set filetype"). This filetype is not
connected with the vim-latexsuite, which is totally right, since .tex is
also the extension for plain-original-knuth-like TeX-Files (which are
not supportet by vimLaTeX-suite).

When opening a file which is named <something>.tex the filetype is set
to "plaintex" UNLESS the file begins with "\documentclass..." which is a
strong evidence the file is a LaTeX and not a plainTeX-file. In this
case vim sets the filetype variable to "tex" (and loads vim-
latexplugin).

Files ending to .latex are automatically identified as LaTeX-files.

So it's not a bug, it's a feature ;).

If you want to write a LaTeX file in a newly created buffer, just type
":set filetype=tex" and everything is the way you want it. If you
neverever will will write a plaintex-file you may put this into your
.vimrc to override the _wise_ defaults:

autocmd BufNewFile,Bufread *.tex set filetype=tex

** Changed in: vim-latexsuite (Ubuntu)
       Status: Confirmed => Invalid

-- 
.tex file not associated with latexsuite by default
https://bugs.launchpad.net/bugs/225943
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to