>>13 nano fixes all of those problems.
I always call nano with the switches "-wiR".You can permanently set them in your ".nanorc" file.
-w meaning don't wrap lines-i meaning auto-indent-R meaning regular-expression search/replace