working with nano
Linux for blind general discussion
blinux-list at redhat.com
Wed Jun 14 20:30:40 UTC 2017
Tim here. Depending on the behavior you want, use one of the
following in your ~/.nanorc file.
If you want soft-wrapping where long lines display as wrapped but the
lines remain as individually long lines in the saved file, add
If you want hard-wrapping where it will automatically insert
line-breaks when you exceed the maximum line-length, you can
(I find that double-negative is a bit weird). If it's doing that and
you *don't* want it to wrap, you can add
to your file.
Additionally, you can also specify where you want it to wrap, either
at a particular offset such as 75 characters per line:
set fill 75
or at an offset from your right-margin based on your screen-size,
set fill -5
(the two commands should produce the same results on a standard
You should be able to read more about each of these options in
Hope this helps,
(for whom this is all a bit foreign since I'm a vi/vim/ed sorta guy
and only keep nano around for testing things just like this)
On June 14, 2017, Linux for blind general discussion wrote:
> Hi folks, Mark peveto here.
> Normally, seems I'd set this in my nanorc, but I can't find it.
> What i'm trying to do is make sure long line wrapping is on by
> default, so I don't hafta remember to hit alt l every time I start
> nano. There's a way to do it, but I dunno wha tit is. Can anyone
> help me out?
> Mark Peveto
> Registered Linux user number 600552
> Everything happens after coffee!
> Blinux-list mailing list
> Blinux-list at redhat.com
More information about the Blinux-list