sunnyranjan12 / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

vim sets filetype of empty TeX file to plaintex instead of tex #136

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem? // under Linux
1. $ touch empty.tex
2. $ vim empty.tex
3. :set ft? 

The disired response is filetype=tex
The actual response filetype=plaintex is wrong.

What version of the product are you using? On what operating system?
It is happening in all 7.3 version I have

Original issue reported on code.google.com by ondrej.platek@gmail.com on 25 May 2013 at 12:43

GoogleCodeExporter commented 9 years ago
This works as expected.
See :help ft-tex-plugin
You will want to use
let g:tex_flavor = "latex"

Original comment by brammool...@gmail.com on 25 May 2013 at 5:41