[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: set fill 72 have no effect
From: |
Benno Schulenberg |
Subject: |
Re: set fill 72 have no effect |
Date: |
Sun, 17 Jul 2022 09:45:47 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 |
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