Say I want to fix a mistake in the following php code:
$line1 = intval($line[$1]);
$line2 = intval($line[$2]);
$line3 = intval($line[$3]);
and do substitution on the first line with:
:s/\$\(\d\)/\1/
# getting the line fixed:
$line1 = intval($line[1]);
I know that on the current line I can repeat the substitution command with &
or :@:
commands, but is it a command I can do perform repetition of substitution on the consequent two lines, hence specify an address range for the repetition?