> :s/(\([^)]\+\))/\\left(\1\\right)/g
> That might be overkill (e.g., if you didn't want to fix *all* such
> expressions), but it would work for a single selected expression too.
Thanks. Still, that would indeed fix *all* the expressions, even
within the selection, not only the matched pair : No way to move from
:
( a + ( b + c ) )
to
\left( a + ( b + c ) \right)
Anyway, I'm nit-picking here :-) Thanks
> Additionally, if you weren't already aware, you can use % to jump from the
> top of a LaTeX block (e.g., \begin{equation}) to the bottom (\end{equation})
> and back. That makes selecting large blocks quick.
Thank you ! I didn't know that !
Julien
>
> --Ted
>
> On 1/9/09 11:02 AM, Julien Cornebise wrote:
>>>
>>> These are IMAP mappings.
>>
>> Thanks Ted, but I'm fully aware of the IMAP mappings :-)
>> Sorry, I might not have been clear on the context : the latex file
>> already exists, and is filled with unmatched parenthesis (my
>> typographical choices -or lack of, thereof- were not always happy),
>> some of them rightfully, other ... not.
>> Hence I'm going through the formulae and changing the existing
>> parentheses when needed.
>>
>> But where you're right is that I could maybe I can shorten my macro
>> with these, leading to
>>
>> vmap jus ib"zdvab"_di((<Esc>"_2x"zP<C-j><Esc>
>>
>> directly applied in visual (i.e. used as vjus). Feels slightly
>> cleaner. Only slightly.
>>
>> Anyway, that will do for what I have to do, I don't wan't to still more
>> time.
>> Thanks !
>>
>> Julien
>>
>
> --
> Ted Pavlic <[email protected]>
>
> Please visit my ALS association page:
> http://web.alsa.org/goto/tedpavlic
> My family appreciates your support in the fight to defeat ALS.
>
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel