I'd like to run a macro on every line in a selection, rather than totalling up the number of lines in my head. For instance, I might write a macro to transform:
Last, First
Into
First Last
and I'd like it to run on all these lines:
Stewart, John
Pumpkin, Freddy
Mai, Stefan
...
Any ideas Vim gurus?
EDIT: This is just an example, obviously this is trivialy regexable, but there are other instances that come up that aren't quite so easy that I'd prefer to use macros.