comparison miscellany/less-177/less.hlp @ 0:bce86c4163a3

Initial revision
author kono
date Mon, 18 Apr 2005 23:46:02 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:bce86c4163a3
1
2 SUMMARY OF COMMANDS
3
4 Commands marked with * may be preceded by a number, N.
5 Notes in parentheses indicate the behavior if N is given.
6
7 h H Display this help.
8 q :q :Q ZZ Exit.
9
10 e ^E j ^N CR * Forward one line (or N lines).
11 y ^Y k ^K ^P * Backward one line (or N lines).
12 f ^F ^V SPACE * Forward one window (or N lines).
13 b ^B ESC-v * Backward one window (or N lines).
14 z * Forward one window (and set window to N).
15 w * Backward one window (and set window to N).
16 d ^D * Forward one half-window (and set half-window to N).
17 u ^U * Backward one half-window (and set half-window to N).
18 F Forward forever; like "tail -f".
19 r ^R ^L Repaint screen.
20 R Repaint screen, discarding buffered input.
21
22 NOTE: default "window" is the screen height.
23 default "half-window" is half of the screen height.
24
25 /pattern * Search forward for (N-th) matching line.
26 ?pattern * Search backward for (N-th) matching line.
27
28 NOTE: search commands may be modified by one or more of:
29 ! search for NON-matching lines.
30 * search multiple files.
31 @ start search at first file (for /) or last file (for ?).
32
33 n * Repeat previous search (for N-th occurrence).
34 N * Repeat previous search in reverse direction.
35 ESC-n * Repeat previous search, spanning files.
36 ESC-N * Repeat previous search, reverse dir. & spanning files.
37
38 g < ESC-< * Go to first line in file (or line N).
39 G > ESC-> * Go to last line in file (or line N).
40 p % * Go to beginning of file (or N percent into file).
41 { * Go to the } matching the (N-th) { in the top line.
42 } * Go to the { matching the (N-th) } in the bottom line.
43 ( * Go to the ) matching the (N-th) ( in the top line.
44 ) * Go to the ( matching the (N-th) ) in the bottom line.
45 [ * Go to the ] matching the (N-th) [ in the top line.
46 ] * Go to the [ matching the (N-th) ] in the bottom line.
47 ESC-^F <c1> <c2> * Go to the c1 matching the (N-th) c2 in the top line
48 ESC-^B <c1> <c2> * Go to the c2 matching the (N-th) c1 in the bottom line.
49 m<letter> Mark the current position with <letter>.
50 '<letter> Go to a previously marked position.
51 '' Go to the previous position.
52 ^X^X Same as '.
53
54 E [file] Examine a new file.
55 :e ^X^V Same as E.
56 :n * Examine the (N-th) next file from the command line.
57 :p * Examine the (N-th) previous file from the command line.
58 = ^G :f Print current file name.
59 V Print version number of "less".
60
61 -<flag> Toggle a command line flag [see FLAGS below].
62 _<flag> Display the setting of a command line flag.
63 +cmd Execute the less cmd each time a new file is examined.
64
65 !command Passes the command to $SHELL to be executed.
66 |Xcommand Pipe file between current pos & mark X to shell command.
67 v Edit the current file with $EDITOR.
68
69
70 FLAGS
71
72 Most flags may be changed either on the command line,
73 or from within less by using the - command.
74
75 -? Display help (from command line).
76 -a Set forward search starting location.
77 -b [N] Number of buffers.
78 -B Automatically allocate buffers.
79 -c -C Repaint by scrolling/clearing.
80 -d Dumb terminal.
81 -e -E Quit at end of file.
82 -f Force open non-regular files.
83 -h [N] Backward scroll limit.
84 -i Ignore case in searches.
85 -j [N] Screen position of target lines.
86 -k [file] Use a lesskey file.
87 -m -M Set prompt style.
88 -n -N Use line numbers.
89 -o [file] Log file.
90 -O [file] Log file (unconditionally overwrite).
91 -p [pattern] Start at pattern (from command line).
92 -P [prompt] Define new prompt.
93 -q -Q Quiet the terminal bell.
94 -r Translate control characters.
95 -s Squeeze multiple blank lines.
96 -S Chop long lines.
97 -t [tag] Find a tag.
98 -T [tagsfile] Use an alternate tags file.
99 -u -U Change handling of backspaces.
100 -w Display ~ for lines after end-of-file.
101 -x [N] Set tab stops.
102 -y [N] Forward scroll limit.
103 -z [N] Set size of window.
104