| ★ wanayoo — archive 1999 http://nodevice.com/sections/ManIndex/man0698.html | Nouvelle recherche | Portail wanayoo |
| Previous Next Man Index | Sections: 0 1 2 3 4 5 6 7 8 N |
The -V option causes lesskey to print its version number and immediately exit. If -V is present, other options and arguments are ignored.
The input file consists of one or more sections. Each section starts with a line that identifies the type of section. Possible sections are:
Blank lines and lines which start with a pound sign (#) are ignored, except for the special section header lines.
An action may be followed by an "extra" string. When such a command is entered while running less, the action is performed, and then the extra string is parsed, just as if it were typed in to less. This feature can be used in certain cases to extend the functionality of a command. For example, see the "{" and ":t" commands in the example below. The extra string has a special meaning for the "quit" action: when less quits, first character of the extra string is used as its exit status.
#command
\er forw-line
\en forw-line
e forw-line
j forw-line
^E forw-line
^N forw-line
k back-line
y back-line
^Y back-line
^K back-line
^P back-line
J forw-line-force
K back-line-force
Y back-line-force
d forw-scroll
^D forw-scroll
u back-scroll
^U back-scroll
\e40 forw-screen
f forw-screen
^F forw-screen
^V forw-screen
b back-screen
^B back-screen
\eev back-screen
\ee\e40 forw-screen-force
z forw-window
w back-window
F forw-forever
\ee[ left-scroll
\ee] right-scroll
R repaint-flush
r repaint
^R repaint
^L repaint
g goto-line
< goto-line
\ee< goto-line
p percent
% percent
{ forw-bracket {}
} back-bracket {}
( forw-bracket ()
) back-bracket ()
[ forw-bracket []
] back-bracket []
\ee^F forw-bracket
\ee^B back-bracket
G goto-end
\ee> goto-end
> goto-end
= status
^G status
:f status
/ forw-search
? back-search
\ee/ forw-search *
\ee? back-search *
n repeat-search
\een repeat-search-all
N reverse-search
\eeN reverse-search-all
\eeu undo-hilite
m set-mark
' goto-mark
^X^X goto-mark
E examine
:e examine
^X^V examine
:n next-file
:p prev-file
:x index-file
- toggle-option
:t toggle-option t
s toggle-option o
_ display-option
| pipe
v visual
! shell
+ firstcmd
H help
h help
V version
q quit
:q quit
:Q quit
ZZ quit
Be aware that #stop can be dangerous. Since all default commands are disabled, you must provide sufficient commands before the #stop line to enable all necessary actions. For example, failure to provide a "quit" command can lead to frustration.
#line-edit
\et forw-complete
\e17 back-complete
\ee\et back-complete
\e14 expand
^V literal
^A literal
\eel right
\eeh left
\eeb word-left
\eew word-right
\eei insert
\eex delete
\ee\eb word-backspace
\ee0 home
\ee$ end
\eek up
\eej down
#env
LESS = -i
LESSCHARSET = latin1
On MS-DOS and OS/2 systems, certain keys send a sequence of characters which start with a NUL character (0). This NUL character should be represented as \e340 in a lesskey file.
| Previous Next Man Index | Sections: 0 1 2 3 4 5 6 7 8 N |