StarWing schrieb:
> for submatch, I just want to write a patch to support v:1, v:2, etc. :
> if str =~ '\(foo\)\(bar\)'
> echo v:1 v:2 " should echo foo bar.
> endif
>
> that can work in anytime you used pattern. but I found to implement is
> not easy...
>
> \= is a good thing. BUT it can't recursion :-(
:echo matchlist('foobar', '\(foo\)\(bar\)')[1:2]
--
Andy
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---