[Vim-latex-cvs] vimfiles/ftplugin/tex texviewer.vim,1.25,1.26
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2003-06-20 06:11:58
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/tex In directory sc8-pr-cvs1:/tmp/cvs-serv30555 Modified Files: texviewer.vim Log Message: Bug: A recent change made in order to recognize strings such as \psfig{file=} for completion resulted in not completing \ref{eqn: ! (Sorry) Fix: Change the regexp again. Change: Use redraw! for helping terminal users. and also do not use <silent> unless we have gui running. Index: texviewer.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/tex/texviewer.vim,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** texviewer.vim 17 Jun 2003 17:26:46 -0000 1.25 --- texviewer.vim 20 Jun 2003 06:11:54 -0000 1.26 *************** *** 19,23 **** inoremap <silent> <Plug>Tex_Completion <Esc>:call Tex_completion("default","text")<CR> if !hasmapto('<Plug>Tex_Completion', 'i') ! imap <buffer> <silent> <F9> <Plug>Tex_Completion endif endfunction --- 19,27 ---- inoremap <silent> <Plug>Tex_Completion <Esc>:call Tex_completion("default","text")<CR> if !hasmapto('<Plug>Tex_Completion', 'i') ! if has('gui_running') ! imap <buffer> <silent> <F9> <Plug>Tex_Completion ! else ! imap <buffer> <F9> <Plug>Tex_Completion ! endif endif endfunction *************** *** 80,84 **** " s:type = 'psfig' " s:typeoption = '[option=value]' ! let pattern = '.*\\\(\w\{-}\)\(\[.\{-}\]\)\?{\(\a\+=\)\?$' if s:curline =~ pattern let s:type = substitute(s:curline, pattern, '\1', 'e') --- 84,88 ---- " s:type = 'psfig' " s:typeoption = '[option=value]' ! let pattern = '.*\\\(\w\{-}\)\(\[.\{-}\]\)\?{\(\S\+\)\?$' if s:curline =~ pattern let s:type = substitute(s:curline, pattern, '\1', 'e') *************** *** 93,96 **** --- 97,101 ---- call Tex_Debug("silent! grep! '\\label{".s:prefix."' ".s:search_directory.'*.tex', 'view') exe "silent! grep! '\\label{".s:prefix."' ".s:search_directory.'*.tex' + redraw! call <SID>Tex_c_window_setup() *************** *** 107,110 **** --- 112,116 ---- call Tex_Debug('calling Tex_GrepForBibItems', 'bib') call Tex_GrepForBibItems(s:prefix) + redraw! call <SID>Tex_c_window_setup() endif |