is it possible to configure nano to have line breaks on long lines instead of showing a $?
Long Line Wrapping Toggle (Meta-L) toggles the -w (--nowrap) command line option.
-r <#cols>, --fill=<#cols> Wrap lines at column #cols. If this value is 0 or less, wrapping will occur at the width of the screen less #cols, allowing it to vary along with the width of the screen if the screen is resized. The default value is -8.
Edit: For the lazy, just edit nanorc:
set fill n
Wrap lines at column number n. If n is 0 or less, the line length will be the screen width less n. The default value is -8.
Don't wrap text at all.