Press the Insert key. You probably pressed it by accident which set overtype mode. In overtype mode what you type replaces the current character.