On Mon, Sep 18, 2006 at 12:50:59PM +0200, Andrea Spadaccini wrote:
> Ciao Samuel,
> 
> > In your vim folder you probably have a filetype.vim which has a couple
> > of lines per file type to detect when an extension is opened or
> > created, and set the filetype automatically.
> 
> Thanks, I modified it and it works like a charm! :)

     The standard advice is *not* to modify any files under $VIMRUNTIME,
including the filetype.vim that comes with the standard vim
distribution.  One reason is that any changes you make will be lost when
you upgrade to a new version of vim.

     If your files end in .tex and are not being recognized as LaTeX
(i.e., the 'filetype' option is not being set to "tex") then the
simplest solution is probably to add the line

        let tex_flavor = "latex"

to your vimrc file.  See

:help ft-tex-plugin

HTH                                     --Benji Fisher

Reply via email to