X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=lesskey;h=47cb71eec44da907009931ce7ef36ef78257eb25;hb=2883b26b545153c1c5da87a3244af9518420b025;hp=70f9ae1388e195b4756f96d4e443d08b7c1d7f6d;hpb=7abc06281cf09194942f844e9655ad96d87c0bdd;p=config%2Fdotfiles.git diff --git a/lesskey b/lesskey index 70f9ae1..47cb71e 100644 --- a/lesskey +++ b/lesskey @@ -5,9 +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. -LESS = --no-init --search-skip-screen --quit-if-one-screen --RAW-CONTROL-CHARS +# 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