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

link|improve this question

71% accept rate
feedback

2 Answers

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.

link|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
feedback

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.

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

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.