[Vim-latex-cvs] vimfiles/ftplugin/latex-suite texviewer.vim,1.13,1.14
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2006-01-03 19:30:48
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7690 Modified Files: texviewer.vim Log Message: New: A preliminary attempt (not yet complete) at working with Jabref (http://jabref.sourceforge.net). Some information is still needed from Jabref developers on how to get Jabref to call external programs in a customizable manner. Index: texviewer.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texviewer.vim,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** texviewer.vim 1 Jan 2006 07:54:25 -0000 1.13 --- texviewer.vim 3 Jan 2006 19:30:38 -0000 1.14 *************** *** 104,126 **** elseif exists("s:type") && s:type =~ 'cite' ! " grep! nothing % ! " does _not_ clear the search history contrary to what the ! " help-docs say. This was expected. So use something improbable. ! " TODO: Is there a way to clear the search-history w/o making a ! " useless, inefficient search? ! let s:prefix = matchstr(s:prefix, '\([^,]\+,\)*\zs\([^,]\+\)\ze$') ! silent! grep! ____HIGHLY_IMPROBABLE___ % ! if g:Tex_RememberCiteSearch && exists('s:citeSearchHistory') ! call <SID>Tex_SetupCWindow(s:citeSearchHistory) else ! call Tex_GrepHelper(s:prefix, 'bib') ! redraw! ! call <SID>Tex_SetupCWindow() ! endif ! if g:Tex_RememberCiteSearch && &ft == 'qf' ! let _a = @a ! silent! normal! ggVG"ay ! let s:citeSearchHistory = @a ! let @a = _a endif --- 104,136 ---- elseif exists("s:type") && s:type =~ 'cite' ! ! if Tex_GetVarValue('Tex_UseJabref') == 1 ! call Tex_CD(s:origdir) ! let g:Remote_WaitingForCite = 1 ! let citation = input('Enter citation from jabref (<enter> to leave blank): ') ! let g:Remote_WaitingForCite = 0 ! call Tex_CompleteWord(citation) ! else ! " grep! nothing % ! " does _not_ clear the search history contrary to what the ! " help-docs say. This was expected. So use something improbable. ! " TODO: Is there a way to clear the search-history w/o making a ! " useless, inefficient search? ! let s:prefix = matchstr(s:prefix, '\([^,]\+,\)*\zs\([^,]\+\)\ze$') ! silent! grep! ____HIGHLY_IMPROBABLE___ % ! if g:Tex_RememberCiteSearch && exists('s:citeSearchHistory') ! call <SID>Tex_SetupCWindow(s:citeSearchHistory) ! else ! call Tex_GrepHelper(s:prefix, 'bib') ! redraw! ! call <SID>Tex_SetupCWindow() ! endif ! if g:Tex_RememberCiteSearch && &ft == 'qf' ! let _a = @a ! silent! normal! ggVG"ay ! let s:citeSearchHistory = @a ! let @a = _a ! endif endif |