Re: [Vim-latex-devel] [Contact] Completion problems
Brought to you by:
srinathava,
tmaas
From: Julien U. <22...@st...> - 2004-05-10 05:06:47
|
On Mon, 10 May 2004 09:10 am, Srinath Avadhanula wrote: > > 1) The completion for \\cite{} is not working anymore in the main file (I > > get an empty buffer instead of the list of choices) > > This is a bug which needs to be fixed. After doing a "diff" between the stable version and the latest CVS version I found out where the problem was: I replaced line 536 of texviewer.vim: "exec "silent! grepadd ".Tex_EscapeForGrep('@.*{'.a:prefix)." %" by exec "silent! grepadd '".Tex_EscapeForGrep('@.*{'.a:prefix)."' %" (the older version present in the 1.5 release), and it solved my problem. Here are the debug messages in case you still need them: ************************************************** s:type = cite, typeoption = calling Tex_GrepForBibItems searching for bibkeys in main.tex (buffer #1) found bibliography command in main.tex trying to search through [file1] silent! find file1.bib finding .bib file [file1.bib] using pattern @.*{ +Tex_SetupCWindow +Tex_SyncPreviewWindow ********************************************************* > This should tell us what latex-suite is trying to do. In addition, if > you can give an idea of how your files are arranged, that will be great. The completion wasn't working even with this test file: ***************main.tex***************** \documentclass[a4paper]{book} \begin{document} \cite{} \bibliography{file1} \end{document} **************************************** > > 2) The mapping <F9> does not work any more in the included files > > (opened with \"gf\" in vim). > > This bug has been fixed in the latest CVS. It was still not working for me, although all I had to do was to add an imap in my "tex.vim". My files are arranged in the following way: main directory: main.tex main.tex.latexmain mystyle.sty | Part 1 Chapter1.tex Chapter2.tex |Part 2 etc... |Biblio file1.bib file2.bib etc... Thanks for your quick answer and your help Julien |