When I press h
in less
pager, it displays a help screen. For a seasoned vim/less user, this behavior is extremely annoying. How can I disable the h
key for showing the help screen in less
?
>>> /bin/less --version
less 458 (POSIX regular expressions)
Copyright (C) 1984-2012 Mark Nudelman
less comes with NO WARRANTY, to the extent permitted by law.
For information about the terms of redistribution,
see the file named README in the less distribution.
Homepage: http://www.greenwoodsoftware.com/less
Best Answer
I believe you can use a
lesskey
file to change the key bindings and moreh
andH
somewhere more to your liking. From the manual: