Re: set fill 72 have no effect

Benno Schulenberg <[email protected]> Sun, 17 Jul 2022 09:45:47 +0200
Newsgroups gmane.editors.nano.general
Message-ID <[email protected]>
Op 16-07-2022 om 07:20 schreef Satoshi Yoshida:
> I wrote only "set fill 72" in ~/.config/nano/nanorc.
> But Nano 6.3 displayed over 72 colmuns.

Setting 'fill' doesn't mean that displayed lines will not be longer than
the given number.  It just means that lines will be *broken* at or before
that point (_when possible_) when you edit them and hard-wrapping is on.
(If the line does not contain any blanks, it will not be broken anywhere.)

From the manual:

    set fill number
        Set the target width for justifying and automatic hard-wrapping
        at this number of columns.  [...]

To enable automatic hard-wrapping, use also 'set breaklonglines'.  (Since
version 4.0 hard-wrapping is no longer the default.)

Or maybe you want something like 'set softwrap'?  It will "soft wrap" the
text at the right edge of the screen.  (There is no option to specify at
which width to soft wrap.)  Use also 'set atblanks' if you want to wrap
only at whitespace (when possible).

Benno