I often have a situation where I will direct some output to a file then open it in vim and use ex commands (substitution, keep lines, delete lines, etc) to massage the output to a form I want. However sometimes I end up wanting to apply the same transformation to another set of text soon afterwards. I have to up arrow through all the commands and try and apply them in the same order again, which is slow and error prone.
I am trying to see if there is something like
Ctrl-o in the shell where you can select a certain history item then just replay all the commands after that in order by repeating a key. Does such a thing exist in vim?
(Just to preempt any comments that try to point this out, I know that if I was going to be doing this transformation frequently I should just make a shell command. This is for one-off jobs where the feedback in vim is useful.)