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