[Vim-latex-cvs] vimfiles/plugin imaps.vim,1.34,1.35
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2003-11-14 10:37:59
|
Update of /cvsroot/vim-latex/vimfiles/plugin In directory sc8-pr-cvs1:/tmp/cvs-serv19014 Modified Files: imaps.vim Log Message: New: the g:Imap_FreezeImap function temporarily pauses any macro expansion. Index: imaps.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/plugin/imaps.vim,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** imaps.vim 13 Nov 2003 08:53:43 -0000 1.34 --- imaps.vim 14 Nov 2003 10:37:56 -0000 1.35 *************** *** 212,215 **** --- 212,218 ---- " The place-holder variables are passed to IMAP_PutTextWithMovement() . function! s:LookupCharacter(char) + if IMAP_GetVal('Imap_FreezeImap', 0) == 1 + return a:char + endif let charHash = s:Hash(a:char) *************** *** 756,759 **** --- 759,780 ---- endif endfunction "" }}} + " IMAP_GetVal: gets the value of a variable {{{ + " Description: first checks window local, then buffer local etc. + function! IMAP_GetVal(name, ...) + if a:0 > 0 + let default = a:1 + else + let default = '' + endif + if exists('w:'.a:name) + return w:{a:name} + elseif exists('b:'.a:name) + return b:{a:name} + elseif exists('g:'.a:name) + return g:{a:name} + else + return default + endif + endfunction " }}} " ============================================================================== |