Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I open tex files with vim, but some files are recognized as filetype plaintex, some others as filetype tex. Why is so ? What is the trigger that recognizes the file as tex (which has the highlighting I want) ?

share|improve this question

2 Answers

Are you using the LaTeX-suite plugin? If so, then you probably want

let g:tex_flavor='latex'

in your .vimrc.

share|improve this answer

More than I ever wanted to know about this subject: http://vimdoc.sourceforge.net/htmldoc/filetype.html

To disable one of the file types, add a line in your filetype file, see |remove-filetype|.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.