X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=lesskey;h=dceb3129061df3a07524d6029407864f2c950822;hb=f0217d1f48f76af5f5be9e51f81403c5ff103204;hp=c1a4a72422c38595add587fe4d88e2945b1cca25;hpb=761e5e8b7a2b297622b17bec7c9a72caed2b44f3;p=config%2Fdotfiles.git diff --git a/lesskey b/lesskey index c1a4a72..dceb312 100644 --- a/lesskey +++ b/lesskey @@ -5,10 +5,29 @@ # Map "-" to go up one screen like in mutt. - back-screen +# Map h and l to work like in Vim (go left/right). +h left-scroll +l right-scroll + + +#line-edit + +# Vim-like up/down to replace the arrow keys. +^P up +^N down + #env -# Set options for less. If the command output fits on the current terminal -# page less automatically quits. Also allows the use with colordiff. When -# searching ignore case if no uppercase letter is used. +# Set options for less. +# +# no-init: Disable initialization termcap as it sometimes causes the screen to +# get cleared. +# search-skip-screen: Start searching at the bottom of the screen. +# quit-if-one-screen: If the output fits on the current screen quit less. +# RAW-CONTROL-CHARS: Display ANSI "color" escape sequences to allow colored +# output. Other escape sequences are drawn in caret +# notation. +# ignore-case: Ignore case if the search string doesn't contain any uppercase +# letters. LESS = --no-init --search-skip-screen --quit-if-one-screen --RAW-CONTROL-CHARS --ignore-case