How do I make less STOP chopping long lines by default?

Caleb

The web seems to be full of resources for making less stop wrapping long lines by default and chop them instead. I have the opposite problem. It is chopping be default and I want to make it stop. I want word wrapping turned back on by default, but all I can find are instructions for the other way around. I've tried reversing them, but none of the methods seem to be employed to be reversed.

My problem developed about a month ago and is across a number of systems. I suspect it might actually be my dotfiles somewhere, but for the life of me I can't find it.

  • less is not aliased to anything in my shell, it is not a function, nor am I getting some binary other than the system default:

    $ which less
    /usr/bin/less
    
  • I am not running with the -S argument:

    $ ps waux | grep less
     caleb     3151  0.0  0.0  13592  1036 pts/14   S+   16:06   0:00 less
    
  • I do not have anything set in ~/.lesskey:

    $ cat ~/.lesskey
    cat: /home/caleb/.lesskey: No such file or directory
    

And yet line chopping is turned on everywhere it is instantiated. I have to turn it off with -SEnter every time.

The man page clearly states this is the opposite of the expected behavior:

$ man less
...
    -S or --chop-long-lines
        Causes lines longer than the screen width to be chopped (truncated)
        rather than wrapped.  That is, the portion  of  a  long line that does
        not fit in the screen width is not shown. The default is to wrap long
        lines; that is, display the remainder on the next line.
...

Because it is a default there doesn't seem to be a command line switch to turn this off. Where else could this be getting set so I can find it and eradicate it?

Anthony Geoghegan

Options are also taken from the LESS environment variable. Check if it has been set with echo "$LESS".

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How do I make this long if statement less cumbersome?

From Dev

How do I make this long if statement less cumbersome?

From Dev

How do i make it stop and say connection timeout if it takes too long to connect?

From Dev

How do I make `less` output colors?

From Dev

How do I make `less` output colors?

From Dev

How do I write all lines from less to a file?

From Dev

How do I make a div with guide lines?

From Dev

How can I make chrome (stop asking to be) the default browser?

From Dev

How do I stop my UICollectionViewCell shaking after a long pressure?

From Dev

How do I get long command lines to wrap to the next line?

From Dev

How do I ignore long lines in Sublime Text when searching

From Dev

How do I get long command lines to wrap to the next line?

From Dev

In Notepad++, how do I split long lines in several rows?

From Dev

How do I ignore long lines in Sublime Text when searching

From Dev

How do I make items in an Ionic list smaller (less tall)?

From Dev

How do I make Windows 7 less aggressive in caching memory?

From Dev

How do I make less open binary files without confirmation?

From Dev

How do I make apt-get install less noisy?

From Dev

How do I make Firefox in Lubuntu use less virtual memory?

From Dev

In newer Getopt::Long How do I set default optional values

From Dev

How do I make an nginx proxy stop redirecting to root?

From Dev

Spiral Function for Turtle - how do I make it stop?

From Dev

After the last match is found, how do I make the loop stop

From Dev

Spiral Function for Turtle - how do I make it stop?

From Dev

How do I make the clock stop chiming every hour on the hour?

From Dev

What is "packagekitd" and how do I make the Software Updater stop waiting for it?

From Dev

How do I make Update Manager stop opening automatically?

From Dev

How do I make the arc of the sun stop at the left end of the page?

From Dev

How do I make knitr::kable tables stop floating?

Related Related

  1. 1

    How do I make this long if statement less cumbersome?

  2. 2

    How do I make this long if statement less cumbersome?

  3. 3

    How do i make it stop and say connection timeout if it takes too long to connect?

  4. 4

    How do I make `less` output colors?

  5. 5

    How do I make `less` output colors?

  6. 6

    How do I write all lines from less to a file?

  7. 7

    How do I make a div with guide lines?

  8. 8

    How can I make chrome (stop asking to be) the default browser?

  9. 9

    How do I stop my UICollectionViewCell shaking after a long pressure?

  10. 10

    How do I get long command lines to wrap to the next line?

  11. 11

    How do I ignore long lines in Sublime Text when searching

  12. 12

    How do I get long command lines to wrap to the next line?

  13. 13

    In Notepad++, how do I split long lines in several rows?

  14. 14

    How do I ignore long lines in Sublime Text when searching

  15. 15

    How do I make items in an Ionic list smaller (less tall)?

  16. 16

    How do I make Windows 7 less aggressive in caching memory?

  17. 17

    How do I make less open binary files without confirmation?

  18. 18

    How do I make apt-get install less noisy?

  19. 19

    How do I make Firefox in Lubuntu use less virtual memory?

  20. 20

    In newer Getopt::Long How do I set default optional values

  21. 21

    How do I make an nginx proxy stop redirecting to root?

  22. 22

    Spiral Function for Turtle - how do I make it stop?

  23. 23

    After the last match is found, how do I make the loop stop

  24. 24

    Spiral Function for Turtle - how do I make it stop?

  25. 25

    How do I make the clock stop chiming every hour on the hour?

  26. 26

    What is "packagekitd" and how do I make the Software Updater stop waiting for it?

  27. 27

    How do I make Update Manager stop opening automatically?

  28. 28

    How do I make the arc of the sun stop at the left end of the page?

  29. 29

    How do I make knitr::kable tables stop floating?

HotTag

Archive