24
6
When searching for terms in less, I'd like to see lines above and below a search result. Can less be configured to do this?
Simple less usage is: - Open file - Search by typing "/" - Move to new search matches with "n" But each match is shown on the first line of the terminal. You can not see the lines that came just before a search result without moving the view back a few lines. It's tedious to do that as you skim through a file.
2Can you provide more information on what you are trying to do? I think I understand, but it's not at all clear. – ChrisF – 2011-03-14T21:25:40.307
Reworded question to be more explicit. – Vincent Scheib – 2011-03-14T21:57:00.823