'man' converts hyphens to minus-hyphens

68 Views Asked by At

I use nvimpager as my pager.

When I run for example man gpg, and I search for "-e" by typing "/-e", it finds nothing.

This is because my keyboard types "-", which is U+002D HYPHEN-MINUS, while the man page uses "‐", which is U+2010 HYPHEN.

How can I convert the HYPHEN of the manpage into the HYPHEN-MINUS that my keyboard types?

1

There are 1 best solutions below

0
marcingo On

OK, I also got a workaround for you, which you can use to create a bash alias as well if you want:

man --encoding=US-ASCII gpg