When I press n
or N
to find the next match, it often happens that the window is redrawn such that the next match is displayed on the bottom-most or top-most line on the screen, and I have to scroll a few lines further to see enough context to know if I actually want to edit that line.
Is there a way to force the matches to be displayed such that a few surrounding lines are always visible?