Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

is it possible to configure nano to have line breaks on long lines instead of showing a $?

share|improve this question

Yes this is possible. I no longer have nano installed so I can't lookup how. But you'll find the setting by doing either man nano or man nanorc.

share|improve this answer
i have already done the reasearch and tryed to find out how to do it, but with no luck. – Darkmage Feb 16 '10 at 13:44
Isn't this it? "set fill n: Wrap lines at column number n. If n is 0 or less, the maximum line length will be the screen width less n columns. The default value is -8." – dubiousjim Feb 16 '10 at 18:12
this is what i havwe tryed, i have the set nowrap and the set fill on but ist not working for some reason. – Darkmage Feb 17 '10 at 9:02

Nano manual:

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.
set/unset nowrap
Don't wrap text at all.

share|improve this answer
It doesn't remove the $. – Studer Feb 16 '10 at 16:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .