I like less and use it as my default pager in Linux.

However, there are times that I am scrolling down through a large document quickly and less exits when I reach the end of the document before I have time to stop scrolling. I'd like less to exit only I type q, and not because I ask it to scroll beyond the end of the document. Is that possible?

Thanks

link|improve this question

68% accept rate
feedback

1 Answer

up vote 2 down vote accepted

Pass -+e -+E to less to disable quit-at-EOF.

link|improve this answer
1  
You can also set your LESS environment variable for any flags you want to set for all invocations. – Rich Homolka Apr 4 '11 at 22:35
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.