1,$s/foo/test/g
w
