On Sun, Apr 26, 2009 at 01:55:08AM +0100, Thomas Ibbotson wrote:
> Hi,
>
> Here's another patch to texviewer.vim against the current SVN version. This
> now matches bibitems with labels i.e. \bibitem[foo]{bar} when using a
> \thebibliography environment.
>
> I also noticed that \cite completion did not work for a file with a
> \thebibliography environment unless I put the following line in my .vimrc:
>
> let g:Tex_UseCiteCompletionVer2 = 0
>
> Is this just unfinished? I have had a look, and haven't thought of an easy
> way to fix this, but I'm happy to come up with something if this isn't
> already being currently worked on.
>
> Thanks,
>
> Tom
Hi;
yet another patch, working over Thomas' one. The previous patch
identified lines with \bibitem[...]{...} for completion, but the
completion worked oddly. This one works fine, at least in the cases I
tested it with.
Also, I added some spaces to the regexps, since something like
\bibitem [A] {a}
is understood by latex, so it should be understood by vim-latex.
I did not add possible newlines in the middle: latex understands
\bibitem
[A] {a}
and the current patch doesn't.
Also: I missed the completion for cites for quite a long time, until
Thomas suggested to set the variable g:Tex_UseCiteCompletionVer2.
Thanks! Besides this, as he says, it is not a good thing having to set
this variable. Is it part of an unfinished work?
Best,
Matías
|