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
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
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:
Hi all,
I'd like to enable latex suite within my CWEB source files (.w extension).
Vim has a cweb syntax option (set syntax=cweb). Any idea how to trigger
loading latex suite for .w files? I've tried copying my
~/.vim/ftplugin/tex.vim and tex_latexSuite.vim to parallel versions starting
with
I'd like to enable latex suite within my CWEB source files (.w
extension). Vim has a cweb syntax option (set syntax=cweb). Any idea
how to trigger loading latex suite for .w files? I've tried copying my
~/.vim/ftplugin/tex.vim and tex_latexSuite.vim to parallel versions
starting with
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.
On Thu August 7 2008, Rhys Ulerich wrote:
I'd like to enable latex suite within my CWEB source files (.w extension).
Vim has a cweb syntax option (set syntax=cweb). Any idea how to trigger
loading latex suite for .w files? I've tried copying my
~/.vim/ftplugin/tex.vim and
Adding a file ~/.vim/ftdetect/vim-latex.vim containing:
au BufNewFile,BufRead *.w set ft=tex
I was thinking of something similar, but I was afraid that that would
blow away any cweb-specific hooks from the cweb filetype.
So it seemed like a better idea to do the symlink option so that the
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
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) to
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
--
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 top of the file
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 message
13 matches
Mail list logo