I'm not sure exactly why it doesn't work, but i have verified that it doesn't. I am concerned with the complexity of your command -- perhaps ed is becoming confused with all the addresses: the form "g/a//a/,/a/+1j" is indeed highly redundant. The form "g/a/.,.+1j" is "more correct" if such an expression may be used. I have verified that "g/stu_f/.,.+1j" works.