Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question

2 Answers 2

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
1  
It doesn't remove the $. –  Studer Feb 16 '10 at 16:56

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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