Hacker News new | past | comments | ask | show | jobs | submit login

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 Spring batch! Applications are open till Feb 11.

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

Search: