less: folding/chopping

I’ve been using less for years now, though today I learned a helpful new trick: you can toggle between command line options by typing – then the option. So, for -S, you can toggle between “chopping” lines or not; also known as line folding; also known as line wrapping.

Further, any other command line option can be changed this way. There’s not an awful lot here that warrants frequent changing, though -N does toggle line numbers which can be handy. Trying -G also toggles search highlighting, and -i and -I can toggle case sensitivity in searches, the latter extending to searches with patterns using uppercase letters.

Leave a Reply