Skip to content

Comment on Things you didn't know about GNU readline (2019)

Comments

To make Less (the pager program) behave a bit more as if it used Readline (it doesn't), one can create a `~/.config/lesskey` file with these contents:

  #line-edit
  ^A home
  ^E end
  ^F right
  ^B left
  ^P up
  ^N down
  ^D delete
  ^W word-backspace
  \ed word-delete
  \ef word-right
I think a relatively recent version of Less is required.

Holy GOD all these years of wasting time on HN have finally paid off!

THANK YOU FOR SHARING THIS

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.