[Vim-latex-cvs] vimfiles/ftplugin/tex texviewer.vim,1.34,1.35
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2003-12-15 00:55:29
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/tex In directory sc8-pr-cvs1:/tmp/cvs-serv31913 Modified Files: texviewer.vim Log Message: modifications to account for the changes in Tex_EscapeForGrep(). Index: texviewer.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/tex/texviewer.vim,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** texviewer.vim 14 Dec 2003 23:31:10 -0000 1.34 --- texviewer.vim 15 Dec 2003 00:55:26 -0000 1.35 *************** *** 76,81 **** if exists("s:type") && s:type =~ 'ref' ! call Tex_Debug("silent! grep! ".Tex_EscapeForGrep('\label{'.s:prefix)." *.tex", 'view') ! exec "silent! grep! ".Tex_EscapeForGrep('\label{'.s:prefix)." *.tex" redraw! call <SID>Tex_SetupCWindow() --- 76,81 ---- if exists("s:type") && s:type =~ 'ref' ! call Tex_Debug("silent! grep! ".Tex_EscapeForGrep('\\label{'.s:prefix)." *.tex", 'view') ! exec "silent! grep! ".Tex_EscapeForGrep('\\label{'.s:prefix)." *.tex" redraw! call <SID>Tex_SetupCWindow() *************** *** 132,136 **** else ! let s:word = matchstr(s:curline, '\zs\k\{-}$') if s:word == '' if col('.') == strlen(getline('.')) --- 132,136 ---- else ! let s:word = expand('<cword>') if s:word == '' if col('.') == strlen(getline('.')) *************** *** 143,148 **** endif endif ! call Tex_Debug("silent! grep! '\\<".s:word."' *.tex", 'view') ! exe "silent! grep! '\\<".s:word."' *.tex" call <SID>Tex_SetupCWindow() --- 143,148 ---- endif endif ! call Tex_Debug("silent! grep! ".Tex_EscapeForGrep('\<'.s:word.'\>')." *.tex", 'view') ! exec "silent! grep! ".Tex_EscapeForGrep('\<'.s:word.'\>')." *.tex" call <SID>Tex_SetupCWindow() *************** *** 151,166 **** elseif a:where == 'tex' " Process :TLook command ! exe "silent! grep! '".a:what."' *.tex" call <SID>Tex_SetupCWindow() elseif a:where == 'bib' " Process :TLookBib command ! exe "silent! grep! '".a:what."' *.bib" ! exe "silent! grepadd! '".a:what."' *.bbl" call <SID>Tex_SetupCWindow() elseif a:where == 'all' " Process :TLookAll command ! exe "silent! grep! '".a:what."' *" call <SID>Tex_SetupCWindow() endif --- 151,166 ---- elseif a:where == 'tex' " Process :TLook command ! exe "silent! grep! ".Tex_EscapeForGrep(a:what)." *.tex" call <SID>Tex_SetupCWindow() elseif a:where == 'bib' " Process :TLookBib command ! exe "silent! grep! ".Tex_EscapeForGrep(a:what)." *.bib" ! exe "silent! grepadd! ".Tex_EscapeForGrep(a:what)." *.bbl" call <SID>Tex_SetupCWindow() elseif a:where == 'all' " Process :TLookAll command ! exe "silent! grep! ".Tex_EscapeForGrep(a:what)." *" call <SID>Tex_SetupCWindow() endif *************** *** 538,542 **** call Tex_Debug('finding .bbl file ['.bufname('.').']', 'bib') lcd %:p:h ! exec "silent! grepadd ".Tex_EscapeForGrep('\bibitem{'.a:prefix)." %" endif endif --- 538,542 ---- call Tex_Debug('finding .bbl file ['.bufname('.').']', 'bib') lcd %:p:h ! exec "silent! grepadd ".Tex_EscapeForGrep('\\bibitem{'.a:prefix)." %" endif endif *************** *** 562,566 **** split lcd %:p:h ! exec "silent! grepadd ".Tex_EscapeForGrep('\bibitem{'.a:prefix)." %") q --- 562,567 ---- split lcd %:p:h ! call Tex_Debug("silent! grepadd ".Tex_EscapeForGrep('\\bibitem{'.a:prefix)." %", 'view') ! exec "silent! grepadd ".Tex_EscapeForGrep('\\bibitem{'.a:prefix)." %" q |