Update of /cvsroot/vim-latex/vimfiles/plugin
In directory sc8-pr-cvs1:/tmp/cvs-serv24249
Modified Files:
imaps.vim
Log Message:
Bug: The mappings in latex-suite effect only the first .tex file being
edited.
Cause: In a recent chage, when IMAP(lhs, rhs, ft) is called with a
a:ft != '', then it sets the mapping to be buffer local. This
breaks latex-suite which calls the IMAP() functions only once when
it is first started, not for every buffer. Changing things so that
the mappings are called with every filetype event will be
1. quite time consuming
2. kind of inefficient in that a _lot_ of lines will need to be
resourced with every filetype event.
So until a better solution presents itself, make all maps created by
IMAP() global (not buffer-local).
Index: imaps.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/plugin/imaps.vim,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** imaps.vim 23 Dec 2002 02:01:49 -0000 1.13
--- imaps.vim 24 Dec 2002 12:51:06 -0000 1.14
***************
*** 8,12 ****
" while preserving filetype indentation.
"
! " Last Change: Sun Dec 22 05:00 PM 2002 PST
"
" Documentation: {{{
--- 8,12 ----
" while preserving filetype indentation.
"
! " Last Change: Tue Dec 24 04:00 AM 2002 PST
"
" Documentation: {{{
***************
*** 179,183 ****
let lastLHSChar = '<space>'
end
! exe 'inoremap <silent>' (a:ft== '' ? '' : '<buffer>')
\ escape(lastLHSChar, '|')
\ '<C-r>=<SID>LookupCharacter("' .
--- 179,183 ----
let lastLHSChar = '<space>'
end
! exe 'inoremap <silent>'
\ escape(lastLHSChar, '|')
\ '<C-r>=<SID>LookupCharacter("' .
|