X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=lesskey;h=47cb71eec44da907009931ce7ef36ef78257eb25;hb=560db2afab3ab0d2798386a6718cf839046a515d;hp=c1a4a72422c38595add587fe4d88e2945b1cca25;hpb=761e5e8b7a2b297622b17bec7c9a72caed2b44f3;p=config%2Fdotfiles.git diff --git a/lesskey b/lesskey index c1a4a72..47cb71e 100644 --- a/lesskey +++ b/lesskey @@ -5,10 +5,22 @@ # 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 + #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