Simply. When u make changes to those first foo, your cursor stays at the end of first foo. Just press arrow-key down, so the cursor goes to second-line foo, than ctrl+d again -> changes -> arrow-key down -> ctrl+d and on and on..
ADDED:
When edited text goes longer, than second line's 'foo', you can always navigate to the line begining. Maybe Home button?
If home is not a solution, you can always make your own keybindings, maybe, this way:
{ "keys": ["ctrl+alt+left"], "command": "move_to", "args": {"to": "bol", "extend": false} },
{ "keys": ["ctrl+alt+right"], "command": "move_to", "args": {"to": "eol", "extend": false} }
This way you will be able to get to lines begining by pressing Ctrl+alt+left.. of course u can change it - code is pretty simple.