The thing is, omap actually just defines a map that is in effect in object-pending mode -- when the cursor is half-height in gvim. In this case, the map goes backwards till it finds something that could be considered the start of a LaTeX paragraph, then it does ".", or the same thing, until the end of a LaTeX paragraph. I think "dlp" would also work, but clp would not work: it would clear the text till the start, and insert .// or something.
So I'm not sure if we can make ae/ie maps that work exactly like ap/ip do; those seem to have an advantage since they're built-in. But if anyone has a way, please share! :) -Mike On Wed, Jan 7, 2009 at 6:55 PM, Manuel Pégourié-Gonnard <m...@elzevir.fr> wrote: > Hi Mike, > > Mike Richman a écrit : >> Basically, gwlp will reformat the current paragraph until it reaches a >> blank line or a begin or end of environment or a label or an item >> command. This way gwlp won't mess up your math, but your text will >> still be formatted correctly. >> > OMG! I've been looking for this for sooooo long! Thanks a lot. > > I guess the culprit is that omap defines new "objects". Is is possible > possible to define objects like "e" for environment such that ae means > the whole environment including the \begin and \end lines, and ie just > the body? > > I'll test it tomorrow, and try to understand how it works, and maybe > come back with a few more questions. > > Thanks again, > Manuel. > ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Vim-latex-devel mailing list Vim-latex-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vim-latex-devel