Re: working with nano

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

  set softwrap

If you want hard-wrapping where it will automatically insert
line-breaks when you exceed the maximum line-length, you can

  unset nowrap

(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

  set nowrap

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,
such as

  set fill -5

(the two commands should produce the same results on a standard
80-column terminal)

You should be able to read more about each of these options in

  man nanorc

Hope this helps,

-tim
(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@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/blinux-list

_______________________________________________
Blinux-list mailing list
Blinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/blinux-list



[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]