I've put
augroup filetypedetect
" Some LaTeX types
au! BufRead,BufNewFile *.cls setfiletype tex
au! BufRead,BufNewFile *.lco setfiletype tex
augroup END
in my ".vim/filetype.vim" and
syntax on
filetype plugin on
in my ".vimrc".
Best Regards
Gerd
On 04/11/2012 10:47 AM, Alessandro Pezzoni wrote:
> I'm not sure exactly. I had an issue where .sty files were assigned
> filetype "tex", but I didn't get any syntax highlighting. I had the
> "filetype plugin on" instruction in a separate rc file, which was
> sourced in my vimrc, after an autocommand for the "tex" filetype.
> Putting that line before the autocommand fixed my issue.
>
> Hope this helps,
> Alessandro
>
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Vim-latex-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel