Nano World Wrap Without Hard Breaks

3

How would I use the nano edtior to show the wrapping of the text, but without having the text broken by end of line characters? If I turn wrap off I'm only able to view one line of text, but if I have it on I get an /n character where the text is wrapped.

monksy

Posted 2011-04-05T01:47:36.443

Reputation: 1 631

Answers

3

You can add the following to your $HOME/.nanorc:

## Enable soft line wrapping (AKA full line display).
set softwrap

mgmillani

Posted 2011-04-05T01:47:36.443

Reputation: 46

Also add set nowrap to disable the destructive hard-wrapping of text – mwfearnley – 2019-02-20T13:33:52.257