Re: [Vim-latex-devel] Problem with name starting with a number
Brought to you by:
srinathava,
tmaas
From: Berta M. <ber...@ar...> - 2005-02-08 20:26:32
|
On Tue, Feb 08, 2005 at 05:36:22PM +0100, Fabio Stumbo wrote: > Finally, I would like to ask a question to which I have not been able to > find an answer in the documentation: quite often I happen to edit plain > tex files. How can I toggle the command \ll to use "tex" instead of > "latex"? > I defined > > noremap \latex :let g:Tex_CompileRule_dvi = 'latex -src-specials > -interaction=nonstopmode $*'<CR> > noremap \tex :let g:Tex_CompileRule_dvi = 'tex -src-specials > -interaction=nonstopmode $*'<CR> > > in my .vimrc, so that I just type "\tex" once after starting and then \ll > works as I want, but I feel this is not the "best" way to achieve this. I think this is the best way to solve this. If you edit and compile plainTeX files once for a time, it is better to use some mapping that edit the ${HOME}/.vimrc and there comment or uncomment some lines. For fifty:fifty usage of plainTeX and LaTeX maybe modeline option can help: ----- begin (part of .vimrc) ----- " check three line for commands in each file set modeline modelines=3 ----- end (part of .vimrc) ----- I can image that I use often some files either in plain- either in La- and their first (or last) [N] lines are next: % vim:set let g:Tex_CompileRule_dvi = 'latex -src-specials -interaction=nonstopmode $*' and similarly with tex program. I use latex-suite for a quite long time (I am very satisfied with it :) and also vim, but I don't know other way how to solve this. Have a nice day, Milan |