Re: [Vim-latex-devel] F9 doesn't work
Brought to you by:
srinathava,
tmaas
From: Srinath A. <sr...@fa...> - 2003-07-08 16:33:16
|
On Tue, 8 Jul 2003, Mikolaj Machowski wrote: > > :call Tex_PrintDebug('bib') > > calling Tex_GrepForBibItems > searching for bibkeys in ch0.tex (buffer #1) > Well, this means that neither a \begin{thebibliography} or \bibliography command was found in ch0.tex. Try inserting the \bibliography command and telling me afterwards what Tex_PrintDebug('bib') says... > Ah. My fault. I forgot about one thing \bibliography{} command. But > still: \bibliography{file} inserted in current dir. file.bib exists and > zsh returns: zsh: no matches found: @.*{ > Aha! This is the problem. It looks like 'zsh' expands @.*{ when you issue grep @.*{ *.vim from the comand line whereas 'bash' passes it directly to grep... Try applying the patch below to texviewer.vim... > Also prefixes doesn't work. > This is a side-effect. Srinath Index: texviewer.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/tex/texviewer.vim,v retrieving revision 1.30 diff -c -c -r1.30 texviewer.vim *** texviewer.vim 30 Jun 2003 01:27:19 -0000 1.30 --- texviewer.vim 8 Jul 2003 16:31:12 -0000 *************** *** 144,150 **** exe 'silent! Sexplore '.s:search_directory call <SID>Tex_explore_window("input") ! elseif exists("g:Tex_completion_".s:type) call <SID>CompleteName('plugin_'.s:type) elseif exists("s:type") && g:Tex_completion_explorer =~ ','.s:type --- 144,150 ---- exe 'silent! Sexplore '.s:search_directory call <SID>Tex_explore_window("input") ! elseif exists('s:type') && exists("g:Tex_completion_".s:type) call <SID>CompleteName('plugin_'.s:type) elseif exists("s:type") && g:Tex_completion_explorer =~ ','.s:type *************** *** 510,516 **** call Tex_Debug('finding .bib file ['.bufname('%').']', 'bib') lcd %:p:h " use the appropriate syntax for the .bib file. ! exec 'silent! grepadd @.*{'.a:prefix.' %' else let thisbufnum = bufnr('%') exec 'silent! find '.Tex_Strntok(bibnames, ',', i).'.bbl' --- 510,516 ---- call Tex_Debug('finding .bib file ['.bufname('%').']', 'bib') lcd %:p:h " use the appropriate syntax for the .bib file. ! exec "silent! grepadd '@.*{".a:prefix."' %" else let thisbufnum = bufnr('%') exec 'silent! find '.Tex_Strntok(bibnames, ',', i).'.bbl' *************** *** 518,524 **** if bufnr('%') != thisbufnum call Tex_Debug('finding .bbl file ['.bufname('.').']', 'bib') lcd %:p:h ! exec 'silent! grepadd \bibitem{'.a:prefix.' %' endif endif " close the newly opened window --- 518,524 ---- if bufnr('%') != thisbufnum call Tex_Debug('finding .bbl file ['.bufname('.').']', 'bib') lcd %:p:h ! exec "silent! grepadd '\bibitem{".a:prefix."' %" endif endif " close the newly opened window *************** *** 542,548 **** split lcd %:p:h ! exec 'silent! grepadd \bibitem{'.a:prefix.' %' q return 1 --- 542,548 ---- split lcd %:p:h ! exec "silent! grepadd '\bibitem{".a:prefix."' %" q return 1 |