Re: [Vim-latex-devel] More about F9 completion in multi-directory situation
Brought to you by:
srinathava,
tmaas
From: Gerd W. <ger...@ma...> - 2011-02-22 09:15:46
|
On Tue, 22 Feb 2011, Ng Oon-Ee wrote: > In a previous thread I mentioned that using main.latexmain breaks <F9> > completion, where main.tex.latexmain fixes it. > > Having used this more in actual writing, I've come across buggy > behaviour while editing subfiles (chap1/chap1.tex for example), where > F9 would give an empty list. > > Here's the sequence of events:- > > 1. Edit chap1/chap1.tex, try F9, doesn't work > 2. Edit main.tex, try F9, works > 3. Edit chap1/chap1.tex again, try F9, works > 4. Try F9 again some time later in chap1/chap1.tex, does not work anymore. > > It seems editing main.tex 'caches' the result somehow. If I place > chap1 in the same directory as main.tex there's no problem, but that > simply adds to the clutter (I'm doing a PhD thesis, this thing is > going to grow VERY big esp with all the picture subfolders etc) > > Does anyone else on this list have the same workflow as I do > (multi-directory using .tex.latexmain AND uses F9 completion). Ted is > obviously an expert but he doesn't use the feature =). I think, the problem is that Tex_GetMainFileName() returns /absolute/path/main and not /absolute/path/main.tex Why do you use 'main.latexmain' and not 'main.tex.latexmain'? Maybe you can use the variable g:Tex_MainFileExpression, see ftplugin/latex-suite/main.vim, function Tex_GetMainFileName(...). Regards Gerd |