Re: [Vim-latex-devel] Seting TeX flavor properly in Vim7

2008-08-07 Thread Ted Pavlic
> Btw. you can abbreviate filetype as ft. Yep, but because I was taking the time to document it, I wanted the solution to be self-explanatory. That being said, if people like the idea of manually setting their filetype over and over again... maybe it's better to list the abbreviation. I've now

Re: [Vim-latex-devel] Seting TeX flavor properly in Vim7

2008-08-07 Thread Till Maas
On Thu August 7 2008, Ted Pavlic wrote: > I've tried to document all of these solutions in: > > http://phaseportrait.blogspot.com/2008/03/vim-latex-vim-70-and-filetype-plu >gin.html Btw. you can abbreviate filetype as ft. Regards, Till signature.asc Description: This is a digitally signed messa

Re: [Vim-latex-devel] Seting TeX flavor properly in Vim7

2008-08-07 Thread Ted Pavlic
I've tried to document all of these solutions in: http://phaseportrait.blogspot.com/2008/03/vim-latex-vim-70-and-filetype-plugin.html --Ted Ted Pavlic wrote: >>> Evidently, adding: >>> >>> %&latex >>> >>> to the top of any .tex file will set the proper filetype. >> You can also add this to the t

Re: [Vim-latex-devel] Seting TeX flavor properly in Vim7

2008-08-07 Thread Ted Pavlic
>> Evidently, adding: >> >> %&latex >> >> to the top of any .tex file will set the proper filetype. > > You can also add this to the top of the file (or at the end) to probably get > the same (the filetype will be set to tex): > > % vim: filetype=tex Very cool. That works well. Thanks -- Ted

Re: [Vim-latex-devel] Seting TeX flavor properly in Vim7

2008-08-07 Thread Till Maas
On Thu August 7 2008, Ted Pavlic wrote: > Evidently, adding: > > %&latex > > to the top of any .tex file will set the proper filetype. > > So if you don't want to force the tex_flavor, add that comment to the > top of your LaTeX sources. You can also add this to the top of the file (or at the end)

Re: [Vim-latex-devel] Seting TeX flavor properly in Vim7

2008-08-07 Thread Ted Pavlic
Evidently, adding: %&latex to the top of any .tex file will set the proper filetype. So if you don't want to force the tex_flavor, add that comment to the top of your LaTeX sources. --Ted Ted Pavlic wrote: > In the recent patches that were applied to Vim-LaTeX, was the line: > > let g:

Re: [Vim-latex-devel] Seting TeX flavor properly in Vim7

2008-08-07 Thread Ted Pavlic
FYI, James Vega posted this in the vim-dev list: = Before Vim7 was released, Benji Fisher (the tex ftplugin maintainer) brought up these changes for discussion[0]. There was also a discussion started by Stefano Zacchiroli[1] a few months later wondering whether tex should be the default. [0]

Re: [Vim-latex-devel] Seting TeX flavor properly in Vim7

2008-08-07 Thread Till Maas
On Thu August 7 2008, Ted Pavlic wrote: > So I wonder if something special should be added to the Vim-LaTeX > documentation to instruct users to change their tex_flavor if they want > empty .tex files to load Vim-LaTeX... I added some documentation about it here: http://vim-latex.sourceforge.net/

Re: [Vim-latex-devel] Seting TeX flavor properly in Vim7

2008-08-07 Thread Ted Pavlic
> Looking at the comments in /usr/share/vim/vim71/filetype.vim it may be a bug > im vim, because they default to plain instead of latex, when they do not find > any latex commands, but the comment says, they would default to latex. > Therefore this should be discussed with upstream first. Maybe

Re: [Vim-latex-devel] Seting TeX flavor properly in Vim7

2008-08-07 Thread Ted Pavlic
> Looking at the comments in /usr/share/vim/vim71/filetype.vim it may be a bug > im vim, because they default to plain instead of latex, when they do not find Excellent point. I posted a message (referencing your message here) to the vim_use list. In retrospect, perhaps the vim-dev list would ha

Re: [Vim-latex-devel] Seting TeX flavor properly in Vim7

2008-08-05 Thread Till Maas
On Tue August 5 2008, Ted Pavlic wrote: > > I have vim 7.1.245 from Fedora, which ships some tex.vim files. > > Nevertheless vim-latex is still run, e.g. the folding is still done by > > vim-latex and \ll runs latex. Maybe some features are not working, is > > there some minimal tex file where some

Re: [Vim-latex-devel] Seting TeX flavor properly in Vim7

2008-08-05 Thread Ted Pavlic
> I have vim 7.1.245 from Fedora, which ships some tex.vim files. Nevertheless > vim-latex is still run, e.g. the folding is still done by vim-latex and \ll > runs latex. Maybe some features are not working, is there some minimal tex > file where something does not work for you without setting t

Re: [Vim-latex-devel] Seting TeX flavor properly in Vim7

2008-08-05 Thread Eyolf Ă˜strem
On 05.08.2008 (22:29), Till Maas wrote: > > I have vim 7.1.245 from Fedora, which ships some tex.vim files. Nevertheless > vim-latex is still run, e.g. the folding is still done by vim-latex and \ll > runs latex. Maybe some features are not working, is there some minimal tex > file where someth

Re: [Vim-latex-devel] Seting TeX flavor properly in Vim7

2008-08-05 Thread Till Maas
On Tue August 5 2008, Ted Pavlic wrote: > Till -- > > Thanks for looking that up, but I'm not sure how it applies. > > As of Vim7, if you don't have: > > let g:tex_flavor='latex' > > then the default filetype behavior to a ".tex" file is to treat it as > plaintex. In that case, Vim-LaTe

Re: [Vim-latex-devel] Seting TeX flavor properly in Vim7

2008-08-05 Thread Ted Pavlic
Till -- Thanks for looking that up, but I'm not sure how it applies. As of Vim7, if you don't have: let g:tex_flavor='latex' then the default filetype behavior to a ".tex" file is to treat it as plaintex. In that case, Vim-LaTeX is not invoked at all and thus the texrc doesn't

Re: [Vim-latex-devel] Seting TeX flavor properly in Vim7

2008-08-05 Thread Till Maas
On Mon August 4 2008, Ted Pavlic wrote: > In the recent patches that were applied to Vim-LaTeX, was the line: > > let g:tex_flavor='latex' > > added somewhere? Without it, Vim7's filetype plugin fails to load > Vim-LaTeX. Something changed between Vim6 and Vim7 that made latex *not* > the def

[Vim-latex-devel] Seting TeX flavor properly in Vim7

2008-08-04 Thread Ted Pavlic
In the recent patches that were applied to Vim-LaTeX, was the line: let g:tex_flavor='latex' added somewhere? Without it, Vim7's filetype plugin fails to load Vim-LaTeX. Something changed between Vim6 and Vim7 that made latex *not* the default, which seems strange. -- Ted Pavlic <[EM