In photoshop and some other programs, you can ‘record’ what do you, stop the recording, then ‘play’ it again, effectively applying your recorded manipulations to another item.
This concept should be applicable to text editors too, by tracking relative insertion, movements, etc.
I searched for such a Sublime plugin that does this but could not find anything. Asking here in case anyone knows of one.