How can I switch line-wrapping on and off from within less

2

1

I know I can run less -S and avoid long line wrapping. But can I switch wrapping on and off from within less?

einpoklum

Posted 2014-03-29T07:14:54.760

Reputation: 5 032

Answers

4

Yes. You can toggle the chop behavior within less.

-Shifts would toggle the chop long lines behavior within less.

devnull

Posted 2014-03-29T07:14:54.760

Reputation: 2 987

... and there's nothing shorter than prepending a minus? – einpoklum – 2014-03-29T19:53:16.233

@einpoklum No. Nothing shorter. – devnull – 2014-03-30T02:06:35.370