that is why I have learned to make a backup of my preferences. They become corrupted to often and I can't afford to spend a day reinstalling all my scripts, plugins, and hotkeys. So once I have a stable setup I make a backup of my entire maya folder. This way when I inadvertently turn some goofy ass option on or maya takes a brain dump I just replace the maya folder with the backup.
"If I have seen further it is by standing on the shoulders of giants." Sir Isaac Newton, 1675