Ok. Well, if it were me, I would highlight the section with the offending (expressions)
(perhaps by pressing "v" and then moving to the end of the section) and then issue :s/(\([^)]\+\))/\\left(\1\\right)/g (vim would automatically insert a '<,'> between the : and the s). You could even make a quick mapping that did that for you. 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. 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. --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 <t...@tedpavlic.com> 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 Vim-latex-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vim-latex-devel