[Vim-latex-cvs] vimfiles/plugin imaps.vim,1.12,1.13
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2002-12-23 02:01:56
|
Update of /cvsroot/vim-latex/vimfiles/plugin In directory sc8-pr-cvs1:/tmp/cvs-serv25673 Modified Files: imaps.vim Log Message: . changed the script local s:PlaceHolderStart/End() functions to global IMAP_GetPlaceHolderStart/End() functions. They need to be visible to templates.vim. . changed fun! and endfun to function! and endfunction (another one of those consistent coding thingies) Index: imaps.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/plugin/imaps.vim,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** imaps.vim 22 Dec 2002 14:12:02 -0000 1.12 --- imaps.vim 23 Dec 2002 02:01:49 -0000 1.13 *************** *** 8,12 **** " while preserving filetype indentation. " ! " Last Change: Sun Dec 22 08:00 AM 2002 EST " " Documentation: {{{ --- 8,12 ---- " while preserving filetype indentation. " ! " Last Change: Sun Dec 22 05:00 PM 2002 PST " " Documentation: {{{ *************** *** 187,195 **** " }}} - " IMAP_list: list the rhs and place holders corresponding to a:lhs {{{ " " Added mainly for debugging purposes, but maybe worth keeping. ! fun! IMAP_list(lhs) let char = a:lhs[strlen(a:lhs)-1] let charHash = s:Hash(char) --- 187,194 ---- " }}} " IMAP_list: list the rhs and place holders corresponding to a:lhs {{{ " " Added mainly for debugging purposes, but maybe worth keeping. ! function! IMAP_list(lhs) let char = a:lhs[strlen(a:lhs)-1] let charHash = s:Hash(char) *************** *** 204,210 **** return "rhs = " . s:Map_{ft}_{hash} . " place holders = " . \ s:phs_{ft}_{hash} . " and " . s:phe_{ft}_{hash} ! endfun " }}} - " LookupCharacter: inserts mapping corresponding to this character {{{ " --- 203,208 ---- return "rhs = " . s:Map_{ft}_{hash} . " place holders = " . \ s:phs_{ft}_{hash} . " and " . s:phe_{ft}_{hash} ! endfunction " }}} " LookupCharacter: inserts mapping corresponding to this character {{{ " *************** *** 266,271 **** " The user's placeholder settings. ! let phsUser = s:PlaceHolderStart() ! let pheUser = s:PlaceHolderEnd() " A very rare string: Do not use any special characters here. This is used --- 264,269 ---- " The user's placeholder settings. ! let phsUser = IMAP_GetPlaceHolderStart() ! let pheUser = IMAP_GetPlaceHolderEnd() " A very rare string: Do not use any special characters here. This is used *************** *** 344,349 **** " The user's placeholder settings. ! let phsUser = s:PlaceHolderStart() ! let pheUser = s:PlaceHolderEnd() let searchOpts = a:direction --- 342,347 ---- " The user's placeholder settings. ! let phsUser = IMAP_GetPlaceHolderStart() ! let pheUser = IMAP_GetPlaceHolderEnd() let searchOpts = a:direction *************** *** 572,578 **** endfun "" }}} ! " PlaceHolderStart and PlaceHolderEnd: return the buffer-local " {{{ ! " variable, or the global one, or the default. ! fun! s:PlaceHolderStart() if exists("b:Imap_PlaceHolderStart") && strlen(b:Imap_PlaceHolderEnd) return b:Imap_PlaceHolderStart --- 570,576 ---- endfun "" }}} ! " IMAP_GetPlaceHolderStart and IMAP_GetPlaceHolderEnd: "{{{ ! " return the buffer local placeholder variables, or the global one, or the default. ! function! IMAP_GetPlaceHolderStart() if exists("b:Imap_PlaceHolderStart") && strlen(b:Imap_PlaceHolderEnd) return b:Imap_PlaceHolderStart *************** *** 582,586 **** return "<+" endfun ! fun! s:PlaceHolderEnd() if exists("b:Imap_PlaceHolderEnd") && strlen(b:Imap_PlaceHolderEnd) return b:Imap_PlaceHolderEnd --- 580,584 ---- return "<+" endfun ! function! IMAP_GetPlaceHolderEnd() if exists("b:Imap_PlaceHolderEnd") && strlen(b:Imap_PlaceHolderEnd) return b:Imap_PlaceHolderEnd |