X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=lesskey;h=3a4e402ef6d2fbb60e171103be39b84974b05af4;hb=aa9db4c1b656eab6774b5ae1ade7c6f8bb13a01f;hp=47cb71eec44da907009931ce7ef36ef78257eb25;hpb=9309e8fd189f106857def950ce97d939a9f0a398;p=config%2Fdotfiles.git diff --git a/lesskey b/lesskey index 47cb71e..3a4e402 100644 --- a/lesskey +++ b/lesskey @@ -1,5 +1,20 @@ # Lesskey configuration file for less. +# Copyright (C) 2011-2012 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 @@ -10,6 +25,13 @@ 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. @@ -24,3 +46,9 @@ l right-scroll # 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 + +# 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