[Vim-latex-cvs] vimfiles/ftplugin/latex-suite texviewer.vim,1.2,1.3
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2004-05-09 22:43:11
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26264 Modified Files: texviewer.vim Log Message: Bug: The <F9> mapping only works on the first .tex file which triggers latex-suite. (Julien) Why: When we were moving texviewer.vim from ../tex/texviewer.vim to here, we didn't bother to catch the LatexSuiteFileTypeEvent which is the mechanism to ensure the maps get set for every .tex file opened. Fix: Catch the LatexSuiteFileTypeEvent event (SA) Index: texviewer.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texviewer.vim,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** texviewer.vim 3 Mar 2004 00:19:29 -0000 1.2 --- texviewer.vim 9 May 2004 22:43:00 -0000 1.3 *************** *** 9,18 **** " ============================================================================ - if exists("g:Tex_Completion") - call Tex_SetTexViewerMaps() - finish - endif - let g:Tex_Completion = 1 - " Tex_SetTexViewerMaps: sets maps for this ftplugin {{{ function! Tex_SetTexViewerMaps() --- 9,12 ---- *************** *** 27,37 **** endfunction ! " call this function the first time ! call Tex_SetTexViewerMaps() ! " }}} command -nargs=1 TLook call Tex_Complete(<q-args>, 'tex') command -nargs=1 TLookAll call Tex_Complete(<q-args>, 'all') command -nargs=1 TLookBib call Tex_Complete(<q-args>, 'bib') " ============================================================================== " Main completion function --- 21,36 ---- endfunction ! augroup LatexSuite ! au LatexSuite User LatexSuiteFileType ! \ call Tex_Debug('texviewer.vim: Catching LatexSuiteFileType event', 'view') | ! \ call Tex_SetTexViewerMaps() ! augroup END ! command -nargs=1 TLook call Tex_Complete(<q-args>, 'tex') command -nargs=1 TLookAll call Tex_Complete(<q-args>, 'all') command -nargs=1 TLookBib call Tex_Complete(<q-args>, 'bib') + " }}} + " ============================================================================== " Main completion function *************** *** 166,171 **** endif ! endfunction " }}} ! " Tex_CompleteWord: inserts a word at the chosen location {{{ " Description: This function is meant to be called when the user press --- 165,170 ---- endif ! endfunction ! " }}} " Tex_CompleteWord: inserts a word at the chosen location {{{ " Description: This function is meant to be called when the user press |