Hacked in replace mode

Press 'R' in command mode to enter replace mode; Escape quits.
I'm not sure if the way I've implemented it is particularly good, but it seems to work for now...