REPLACE mode added.
Vi modes modified.