Update of /cvsroot/vim-latex/vimfiles/ftplugin/tex
In directory sc8-pr-cvs1:/tmp/cvs-serv26878
Modified Files:
texviewer.vim
Log Message:
Bug: <F9> only worked the first time.
Index: texviewer.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/tex/texviewer.vim,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** texviewer.vim 7 Jun 2003 21:02:23 -0000 1.18
--- texviewer.vim 8 Jun 2003 22:30:39 -0000 1.19
***************
*** 9,20 ****
if exists("g:Tex_Completion")
finish
endif
! 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
command -nargs=1 TLook call <SID>Tex_look(<q-args>)
--- 9,28 ----
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()
! 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
! " call this function the first time
! call Tex_SetTexViewerMaps()
! " }}}
command -nargs=1 TLook call <SID>Tex_look(<q-args>)
***************
*** 560,564 ****
endfunction " }}}
- let g:Tex_Completion = 1
" this statement has to be at the end.
let s:doneOnce = 1
--- 568,571 ----
|