On 21-Dec-2010 22:33, Bram Moolenaar wrote:
> 
> Ingo Karkat wrote:
> 
>> Alternatively, couldn't something starting with a backslash be used,
>> for example \{99}?
> 
> That's already used.  We could use \%99g, where "g" stands for group.

Ah yes, I (and probably the OP with his proposed ${N} syntax) forgot that the
capturing group can also be referenced in the regexp itself, not just in the
replacement part.

I would also prefer Tom Link's suggestion of named matching groups. \g<name>
could be used for that, like Ruby 1.9 does.

-- regards, ingo

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui