Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: