Hi epanda!
On So, 13 Dez 2009, epanda wrote:
> I have done a func that I call on that way :
>
> :%s/myPattern/\=MY_FUNC(submatch(4),submatch(5),submatch(3),submatch
> (2))/
>
>
>
> I would like to not substitute the pattern, just analyse each line.
I think, this should work:
Define your function such that you pass submatch(0). Inside your
function you can then access all different submatches. At the end of
your function return submatch(0).
regards,
Christian
--
hundred-and-one symptoms of being an internet addict:
12. You turn off your modem and get this awful empty feeling, like you just
pulled the plug on a loved one.