How to make nano act like vi when it comes to text wrapping

nanonewlinesvi

When using vi and long lines, the text are wrap but vi doesn't insert a CR/LF at the end of the line. With nano, if I start typing and the line becomes too long, it will insert CR/LF at the end of the line.

How can I make nano behave like vi when it comes to this feature?

Best Answer

Open the nanorc generally at ~/.nanorc or /etc/nanorc, comment out the line

set nowrap

And uncomment line

set softwrap
Related Question