When I open a man page, for example man chmod
and I hit /
for searching a string in the page I can see all the matching strings highlighted.
Pressing n
or N
will focus on the next/previous matching string.
Is there a way to highlight the current match (the one with the focus) differently from all the matching strings?
Best Answer
This is controlled via
MANPAGER
.Manual pages
defaults to thepager
ofless -is
.You can just highlight the current selection:
Or set the
MANPAGER
variable:You could also use
vim
where the cursor is highlighted so the current selection will appear differently.:Taken from Zameer Manji:
Plus my own option to use space to paginate and
quit
withq
:Set it as your default pager by adding it to your default profile: