Re: [Vim-latex-devel] automatic/remembered TTarget for a directory/project?
Brought to you by:
srinathava,
tmaas
From: Mikolaj M. <mi...@wp...> - 2003-10-09 13:39:07
|
Dnia Monday 06 of October 2003 17:08, Maciej Kalisiak napisał: > Hello, > > Is it possible to somehow remember what :TTarget was set to last time > for a given file or project? I thought that this setting might be > remembered with :mksession, but it isn't. If there is no way currently, > I would like to nominate this for a feature request. > > Example of when the above is useful: I occasionally work on a paper > which specifically requires PDF submission, and thus I will always want > to use pdflatex (i.e., TTarget = pdf) for it, despite generally > preferring dvi. It would be nice that, whenever I load up the > corresponding .tex file (perhaps by sourcing a session file), the > TTarget was already set correctly. I already suggested autocommand but part of "project" exists if you have texproject.vim in your :scriptnames. Put let g:Tex_DefaultTargetFormat = 'pdf' in <main>.tex.latexmain. More about .latexmain files in |latex-master-file|. Currently this is only 'dumb' file for triggering some events but it can be used to store some settings. With texproject.vim it will be sourced. This feature isn't documented because it was not completed. m. -- LaTeX + Vim = http://vim-latex.sourceforge.net/ |