Re: [Vim-latex-devel] How Do I Enable Latex-Suite on Styles (cls, sty)?
Brought to you by:
srinathava,
tmaas
From: Gerd W. <ger...@ma...> - 2012-04-16 07:06:42
|
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 > |