Thread: [Vim-latex-devel] F9 completion problem in vim7
Brought to you by:
srinathava,
tmaas
From: ahmet n. <ahm...@ya...> - 2007-11-05 12:00:34
|
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 |
From: Stephen W. <sw...@gm...> - 2007-11-21 16:21:14
|
Ahmet, You've probably fixed your problem by now, but this is just to say it seems to work in vim 7.1 and the latest version of vim-latex suite for me. Steve On 05/11/2007, ahmet nurlu <ahm...@ya...> 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 > |
From: Ted P. <te...@te...> - 2008-09-02 20:51:54
Attachments:
ref-completion-whitespace.patch
|
It appears like this 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...> |
From: Ted P. <te...@te...> - 2008-09-02 20:57:35
Attachments:
ref-completion-whitespace.patch
|
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...> |
From: Christian E. <bla...@gm...> - 2008-09-03 10:51:33
|
* Ted Pavlic on Tuesday, September 02, 2008 at 16:57:36 -0400 > 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 . . . Then, besides changing the subject, it might even be better to actually not reply to the original (reply-to header) <-- insert big smiley here. > diff -ru old/outline.py new/outline.py > --- old/outline.py 2008-08-27 17:55:51.000000000 +0200 > +++ new/outline.py 2008-08-27 18:00:55.000000000 +0200 > @@ -23,7 +23,7 @@ > contents = '\n'.join(open(fname).read().splitlines()) > > # TODO what are all the ways in which a tex file can include another? > - pat = re.compile(r'^\\(@?)(include|input){(.*?)}', re.M) > + pat = re.compile(r'^\s*\\(@?)(include|input){(.*?)(.tex)?}', re.M) Perhaps make it non-greedy: pat = re.compile(r'^\s*?\\(@?)(include|input){(.*?)(.tex)?}', re.M) > contents = re.sub(pat, lambda input: getFileContents(input, ext), contents) > > return ('%%==== FILENAME: %s' % fname) + '\n' + contents c -- Was heißt hier Dogma, ich bin Underdogma! [ What the hell do you mean dogma, I am underdogma. ] _F R E E_ _V I D E O S_ -->> http://www.blacktrash.org/underdogma/ |
From: Ted P. <te...@te...> - 2008-09-03 13:58:49
|
> Then, besides changing the subject, it might even be better to > actually not reply to the original (reply-to header) <-- insert big > smiley here. Huh... I clicked "Edit as New" in Thunderbird and assumed it would get rid of any references to the old message ID.... I guess I assumed wrong. I figured "New" would mean "New," but I guess I can see how some people would be upset if "New" really meant "New," but then they could have used a different word. --Ted -- Ted Pavlic <te...@te...> |