X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=lesskey;h=e446956717284badd5f29489be452f602549363b;hb=bd7300f75b51e5ee9905d7f03095828b7bb70976;hp=a5aac7aa36b4d9021f4a371f2a1fbd9fd7b725a7;hpb=614f9080ac810a2f4c0a5244bca856f3358e625e;p=config%2Fdotfiles.git diff --git a/lesskey b/lesskey index a5aac7a..e446956 100644 --- a/lesskey +++ b/lesskey @@ -20,7 +20,7 @@ # Map "-" to go up one screen like in mutt. - back-screen -# Map h and l to work like in Vim (go left/right). +# Map h and l to work like in Vim (go left/right). To display the help use H. h left-scroll l right-scroll @@ -36,13 +36,21 @@ l right-scroll # 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. +# no-init: Disable initialization termcap as it causes the screen to get +# cleared on some systems. # 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 +# letters. If there are upperspace letters respect case. +# +# Don't use search-skip-screen or it's easy to miss matches on the current +# page. +LESS = --no-init --quit-if-one-screen --RAW-CONTROL-CHARS --ignore-case + +# Store less' history file in this directory. HISTORY_PATH is replaced by +# setup.sh because lesskey doesn't expand ~/. +LESSHISTFILE = HISTORY_PATH +# Increase the history size, default is 100. +LESSHISTSIZE = 1000