On many Linux configurations the Nano editor has an annoying quirk: when you hit the backspace key (regular delete on the mac), the character to the right of your cursor gets deleted instead of the one on the left. To fix this, edit the /etc/nanorc file and uncomment this line:
# set rebinddelete
so that it looks like this:
I originally saw this fix here. Thanks!