Speaking of VIM patterns, it seems vim doesn't support conditional
expression patterns, only in perl.
Anyone has any tip/workaround for that fro vim regexp?

Thnaks!

On Sat, Feb 21, 2009 at 7:42 PM, Leandro Camargo <leandro...@gmail.com> wrote:
> Wow, thanks Tim! It works fine, except by the case when the last rule
> doesn't have a semicolon in the end.
> So I tried to add (?=) perl alike feature in your pattern to make it
> work and I made it. So, the final pattern I came up with is this one:
>
> :s/\([{;]\|}\&\)\s*/\1\r /g
>
> Just added the \|}\& after your square brackets. =]
> Thanks a ton!

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to