Added -clobber switch to mhstore(1) [Bug #11160].
[mmh] / docs / historical / mh-6.8.5 / miscellany / less-177 / lesskey.man
1
2
3
4      L\bL\bL\bLE\bE\bE\bES\bS\bS\bSS\bS\bS\bSK\bK\bK\bKE\bE\bE\bEY\bY\bY\bY(\b(\b(\b(1\b1\b1\b1)\b)\b)\b)                  U\bU\bU\bUN\bN\bN\bNI\bI\bI\bIX\bX\bX\bX 5\b5\b5\b5.\b.\b.\b.0\b0\b0\b0                   L\bL\bL\bLE\bE\bE\bES\bS\bS\bSS\bS\bS\bSK\bK\bK\bKE\bE\bE\bEY\bY\bY\bY(\b(\b(\b(1\b1\b1\b1)\b)\b)\b)
5
6
7
8      N\bN\bN\bNA\bA\bA\bAM\bM\bM\bME\bE\bE\bE
9           lesskey - specify key bindings for less
10
11      S\bS\bS\bSY\bY\bY\bYN\bN\bN\bNO\bO\bO\bOP\bP\bP\bPS\bS\bS\bSI\bI\bI\bIS\bS\bS\bS
12           l\bl\bl\ble\be\be\bes\bs\bs\bss\bs\bs\bsk\bk\bk\bke\be\be\bey\by\by\by [\b[\b[\b[-\b-\b-\b-o\bo\bo\bo o\bo\bo\bou\bu\bu\but\bt\bt\btp\bp\bp\bpu\bu\bu\but\bt\bt\bt]\b]\b]\b] [\b[\b[\b[i\bi\bi\bin\bn\bn\bnp\bp\bp\bpu\bu\bu\but\bt\bt\bt]\b]\b]\b]
13
14      D\bD\bD\bDE\bE\bE\bES\bS\bS\bSC\bC\bC\bCR\bR\bR\bRI\bI\bI\bIP\bP\bP\bPT\bT\bT\bTI\bI\bI\bIO\bO\bO\bON\bN\bN\bN
15           _\bL_\be_\bs_\bs_\bk_\be_\by is used to specify a set of key bindings to be used
16           by _\bl_\be_\bs_\bs. The input file is a text file which describes the
17           key bindings, and the output file is a binary file which is
18           used by _\bl_\be_\bs_\bs. If no input file is specified, standard input
19           is used.  If no output file is specified, $HOME/.less is
20           used.
21
22           The input file consists of lines of the form:
23
24                string <whitespace> action [extra-string] <newline>
25
26           Whitespace is any sequence of one or more spaces and/or
27           tabs.  The "string" is the command key(s) which invoke the
28           action.  The string may be a single command key, or a
29           sequence of up to 15 keys.  The "action" is the name of the
30           less action, from the list below.  The characters in the
31           "string" may appear literally, or be prefixed by a carat to
32           indicate a control key.  A backslash may be used to cause
33           the following character to be taken literally.  Characters
34           which must be preceded by backslash include carat, space,
35           tab and the backslash itself.  A backslash followed by one
36           to three octal digits may be used to specify a character by
37           its octal value.  Blank lines and lines which start with a
38           pound sign (#) are ignored.
39
40           An action may be followed by an extra string.  This string
41           is parsed after the command is entered, just as if it were
42           entered on the command line.  This feature can be used in
43           certain cases to extend the functionality of a command.  For
44           example, these entries would create a pair of commands to
45           turn on/off line numbers using _\bv_\bi syntax:
46
47                :set\ nu       toggle-option -N
48                :set\ nonu     toggle-option +N
49
50           See also the ":ta" command in the example below.
51
52
53      E\bE\bE\bEX\bX\bX\bXA\bA\bA\bAM\bM\bM\bMP\bP\bP\bPL\bL\bL\bLE\bE\bE\bE
54           The following input file describes the set of default
55           command keys used by less:
56
57                r         forw-line
58                n         forw-line
59                e         forw-line
60
61
62
63      Page 1                                           (printed 3/2/91)
64
65
66
67
68
69
70      L\bL\bL\bLE\bE\bE\bES\bS\bS\bSS\bS\bS\bSK\bK\bK\bKE\bE\bE\bEY\bY\bY\bY(\b(\b(\b(1\b1\b1\b1)\b)\b)\b)                  U\bU\bU\bUN\bN\bN\bNI\bI\bI\bIX\bX\bX\bX 5\b5\b5\b5.\b.\b.\b.0\b0\b0\b0                   L\bL\bL\bLE\bE\bE\bES\bS\bS\bSS\bS\bS\bSK\bK\bK\bKE\bE\bE\bEY\bY\bY\bY(\b(\b(\b(1\b1\b1\b1)\b)\b)\b)
71
72
73
74                j         forw-line
75                ^E        forw-line
76                ^N        forw-line
77                k         back-line
78                y         back-line
79                ^Y        back-line
80                ^K        back-line
81                ^P        back-line
82                J         forw-line-force
83                K         back-line-force
84                Y         back-line-force
85                d         forw-scroll
86                ^D        forw-scroll
87                u         back-scroll
88                ^U        back-scroll
89                '         back-scroll
90                \40       forw-screen
91                f         forw-screen
92                ^F        forw-screen
93                ^V        forw-screen
94                b         back-screen
95                ^B        back-screen
96                \33v      back-screen
97                z         forw-window
98                w         back-window
99                F         forw-forever
100                R         repaint-flush
101                r         repaint
102                ^R        repaint
103                ^L        repaint
104                g         goto-line
105                <         goto-line
106                \33<      goto-line
107                p         percent
108                %         percent
109                {         forw-bracket {}
110                }         back-bracket {}
111                (         forw-bracket ()
112                )         back-bracket ()
113                [         forw-bracket []
114                ]         back-bracket []
115                \33^F     forw-bracket
116                \33^B     back-bracket
117                G         goto-end
118                \33>      goto-end
119                >         goto-end
120                P         goto-end
121                =         status
122                ^G        status
123                :f        status
124                /         forw-search
125                ?         back-search
126
127
128
129      Page 2                                           (printed 3/2/91)
130
131
132
133
134
135
136      L\bL\bL\bLE\bE\bE\bES\bS\bS\bSS\bS\bS\bSK\bK\bK\bKE\bE\bE\bEY\bY\bY\bY(\b(\b(\b(1\b1\b1\b1)\b)\b)\b)                  U\bU\bU\bUN\bN\bN\bNI\bI\bI\bIX\bX\bX\bX 5\b5\b5\b5.\b.\b.\b.0\b0\b0\b0                   L\bL\bL\bLE\bE\bE\bES\bS\bS\bSS\bS\bS\bSK\bK\bK\bKE\bE\bE\bEY\bY\bY\bY(\b(\b(\b(1\b1\b1\b1)\b)\b)\b)
137
138
139
140                \33/      forw-search *
141                \33?      back-search *
142                n         repeat-search
143                \33n      repeat-search-all
144                N         reverse-search
145                \33N      reverse-search-all
146                m         set-mark
147                '         goto-mark
148                ^X^X      goto-mark
149                E         examine
150                :e        examine
151                ^X^V      examine
152                :n        next-file
153                :p        prev-file
154                :x        index-file
155                -         toggle-option
156                :t        toggle-option t
157                s         toggle-option o
158                _         display-option
159                |         pipe
160                v         visual
161                !         shell
162                +         firstcmd
163                H         help
164                h         help
165                V         version
166                q         quit
167                :q        quit
168                :Q        quit
169                ZZ        quit
170                \33\33    quit
171
172           Commands specified by _\bl_\be_\bs_\bs_\bk_\be_\by take precedence over the
173           default commands.  A default command key may be disabled by
174           including it in the key file with the action "invalid".
175
176
177      S\bS\bS\bSE\bE\bE\bEE\bE\bE\bE A\bA\bA\bAL\bL\bL\bLS\bS\bS\bSO\bO\bO\bO
178           less(1)
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195      Page 3                                           (printed 3/2/91)
196
197
198