X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=lesskey;h=da9ace4a191d7d9722c506e19dad4fbb169b580f;hb=d3202537f3bcd18f3b0b712d9c670b914d5a230c;hp=47cb71eec44da907009931ce7ef36ef78257eb25;hpb=9309e8fd189f106857def950ce97d939a9f0a398;p=config%2Fdotfiles.git diff --git a/lesskey b/lesskey index 47cb71e..da9ace4 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,7 @@ 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