X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=lesskey;h=247679be89c6c730bcea096e47ddf0a93951c7b0;hb=20ebba211fbd7740921433de61f301462553fe6b;hp=70f9ae1388e195b4756f96d4e443d08b7c1d7f6d;hpb=7abc06281cf09194942f844e9655ad96d87c0bdd;p=config%2Fdotfiles.git diff --git a/lesskey b/lesskey index 70f9ae1..247679b 100644 --- a/lesskey +++ b/lesskey @@ -1,13 +1,56 @@ # Lesskey configuration file for less. +# Copyright (C) 2011-2013 Simon Ruderich +# +# This file is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This file is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this file. If not, see . + #command # Map "-" to go up one screen like in mutt. - back-screen +# Map h and l to work like in Vim (go left/right). To display the help use H. +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. -LESS = --no-init --search-skip-screen --quit-if-one-screen --RAW-CONTROL-CHARS +# Set options for less. +# +# 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. If there are uppercase letters respect case. +# +# Don't use search-skip-screen as it makes it 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