Re: [Vim-latex-devel] Feature suggestion: distinct tw for normal/math modes
Brought to you by:
srinathava,
tmaas
From: Mike R. <ri...@um...> - 2009-01-08 01:03:50
|
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 <mp...@el...> 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. > |