Re: [Vim-latex-devel] Re: [Vim-latex-cvs] vimfiles/plugin imaps.vim,1.7,1.8
Brought to you by:
srinathava,
tmaas
From: Benji F. <be...@me...> - 2002-12-12 12:35:20
|
Srinath Avadhanula wrote: > Just a small correction.. >=20 > On Wed, 11 Dec 2002, Srinath Avadhanula wrote: >=20 >>Also mathmacros.vim contains about 600 lines which look like this: >> >>-----------------------------------%<----------------------------------= - >>let s:pA =3D 'amenu <silent> 85 '.s:MathMenuName >>exe s:pA2a.'mathbf{} <plug><C-r>=3DIMAP_PutTextWithMovem= ent("\\mathbf{=E4}=AB=BB")<cr>' >>-----------------------------------%<----------------------------------= - >> >>Changing these will also require a nontrivial amount of work. Your snipped example is a problem (defining a string and later=20 calling IMAP) but this is not hard. I can do this with a suitable=20 :%s/../../gc . >><snip> >> >>... I would think that the easiest way to affect the change is to >>first do a quick >> >>exec "% s/\e4/<++>/g" " for <a-umlaut> >>exec "% s/\xab/<+/g" " for "<<" >>exec "% s/\xbb/+>/g" " for ">>" >>% s/IMAP_PutTextWithMovement/Tex_PutTextWithMovement/g >> >>where Tex_PutTextWithMovement() will have to be the "hacky" function >>which knows both about the "\xab" characters and the >>[g:b]Imap_PlaceHolder* settings. This new function will split its >>arguments into variable arguments and then call >>Imap_PutTextWithMovement_new. >=20 > Tex_PutTextWithMovement will _not_ need to know about > [g:b]Imap_PlaceHolder* settings, because it will call the > Imap_PutTextWithMovement_new() function, not the > Imap_PutTextWithMovement() function... >=20 > thats all for now. I do not need two wrapper functions. I'll use=20 Tex_PutTextWithMovement() but not Imap_PutTextWithMovement_new(). I'll=20 see how much I can finish tomorrow morning... --Benji |