Each row is:
Or(a=a[0], b=b[0], out=out[0]);
Or(a=a[0], b=b[0], out=out[0]);
Or(a=a[0], b=b[0], out=out[0]);
and I need:
Or(a=a[0], b=b[0], out=out[0]);
Or(a=a[1], b=b[1], out=out[1]);
Or(a=a[2], b=b[2], out=out[2]);
I tried this solution as:
:let t=[] # then ctrl-v
:s/\d/\=len(add(t,1))/g
But this increments each subsequent number, not per row. I couldn't find/understand other solutions.
Thank you!