Perhaps you pressed the INSERT key by accident? It toggles between replacing and inserting text in any editor.