There is no need to use the command line to edit your own preferences file, nor do you have to be root.
Any files in /Users/<your account>/Library are owned by you and you can freely edit them without becoming root.
Also, if you have the developer tools installed (which I recommend even if...