less +-S does not work (although it does ask
Chop long lines (press RETURN)), and entering
-S once inside
less also does not work. Is there a solution?
I am usig OS X Mavericks (10.9.3).
less 418 (default) or less 458 (via MacPorts)
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
You can use
fold to first wrap the text, then pipe to
fold -w 78 | less
-w sets the number of characters. By default it's 80.
fold is POSIX and bundled with OS X.
less -r as the default Git pager will also achieve folding of long lines.
Otherwise, while the diff is being displayed, you can type
-S, then Enter to toggle chopping/folding long lines.