[Vim-latex-devel] F9 completion problem patch
Brought to you by:
srinathava,
tmaas
From: Ted P. <te...@te...> - 2008-09-02 20:57:35
|
This is my SECOND time posting this message. I realize that I may have posted the first one as a response to the incorrect thread, and so I'm going to go ahead and post it as a new thread . . . It appears like an F9 completion problem has been patched. See the message below and the attached patch (from Florian Petran). ===== (from Florian Petran) Sorry for mailing you directly, but no matter how I try to post to vim-latex-devel, none of my mails seem to make it through. A while ago, someone brought up an issue with F9 ref completion not working when there was whitespace before the input directive. Turns out it is just a small error in a regex in outline.py, I noticed that when I was looking for an error where F9 completion wouldn't work when the filename was stated with the tex extension. I wrote a patch for that file that fixes both errors, could you please forward it to the list? It requires deactivating python via let g:Tex_UsePython=0, though, for the changed python code to take effect. ===== So try applying the attached patch, and then adding a let g:Tex_UsePython=0 in your .vimrc. --Ted P.S. I have not tried this patch. This problem doesn't bother me, and so I don't have an opinion. I was just asked to post this. ahmet nurlu wrote: > Hi, > > I have been getting this recent error with a vim7.1. > It is not happening with vim6.4. > > The problem is that \cite{} command doesn't search > through \begin{thebibliography} environment.(It is > strange that when I type "\cite" , its color becomes > blue.) > > My tex file(try.tex) is something like: > -------------------------------------> > \documentclass{article} > \usepackage{color} > \usepackage{listings} > \begin{document} > try try try > > \cite{}<++> > > \begin{thebibliography}{99} > \bibitem{goossens93} Michel Goossens, The Latex > Book > \end{thebibliography} > \end{document} > ---------------------------------------------< > > when the cursor positions itself into the \cite{}, > pressing F9 brings no action. > > This problem doesn't arise if I prepare a bib > file(trybib.bib) and put my bibliography index into > it. For example, > > my_Directory/ > try.tex > trybib.bib > -------------------------------------------------> > \documentclass{article} > \usepackage{color} > \usepackage{listings} > \begin{document} > try try try > > \cite{}<++> > \bibliographystyle{plain} > \bibliography{trybib} > > \end{document} > > I am using vim-latexsuite(debian/unstable). Any > suggestions? > > Regards, > Ahmet > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Vim-latex-devel mailing list > Vim...@li... > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel > -- Ted Pavlic <te...@te...> |