X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=lesskey;h=dceb3129061df3a07524d6029407864f2c950822;hb=cfd601470b1697113d311bf6b934bc99488e2e6f;hp=6ed6b67d85bbb7c62af96f3b8a11768e19be6642;hpb=5dff75ba0a91179a3fda27a5fba2873d830c2f47;p=config%2Fdotfiles.git diff --git a/lesskey b/lesskey index 6ed6b67..dceb312 100644 --- a/lesskey +++ b/lesskey @@ -9,9 +9,25 @@ 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