Sounds like a cool VIM plugin to write, basically just a key logger that when ran against a file recreates what was done.
Even simpler, a key logger with some control, wouldn't even need integration into a specific editor.
Even simpler, a key logger with some control, wouldn't even need integration into a specific editor.