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
--- texviewer.vim 2009-04-24 00:00:58.000000000 +0100
+++ texviewer_new.vim 2009-04-26 01:20:14.000000000 +0100
@@ -616,7 +616,7 @@ function! Tex_ScanFileForCite(prefix)
split
lcd %:p:h
call Tex_Debug("silent! grepadd! ".Tex_EscapeForGrep('\\bibitem{'.a:prefix)." %", 'view')
- call Tex_Grepadd('\\bibitem{'.a:prefix, "%")
+ call Tex_Grepadd('\\bibitem[\[|{]'.a:prefix, "%")
q
return 1
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel