blob: 8bf59056e45a2a299b5d17dfaeb2e8b79ac7b93d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
SSUUMMMMAARRYY OOFF CCOOMMMMAANNDDSS
Commands marked with * may be preceded by a number, _N.
Notes in parentheses indicate the behavior if _N is given.
A key preceded by a caret indicates the Ctrl key; thus ^K is ctrl-K.
h Display this help.
q :q ZZ Exit.
---------------------------------------------------------------------------
MMOOVVIINNGG
j CR * Forward one line (or _N lines).
k * Backward one line (or _N lines).
f ^F SPACE * Forward one window (or _N lines).
b ^B * Backward one window (or _N lines).
d ^D * Forward one half-window (and set half-window to _N).
u ^U * Backward one half-window (and set half-window to _N).
r ^L Repaint screen.
R Repaint screen, discarding buffered input.
:t Go to supplied tag.
---------------------------------------------------
Default "window" is the screen height.
Default "half-window" is half of the screen height.
---------------------------------------------------------------------------
SSEEAARRCCHHIINNGG
/_p_a_t_t_e_r_n * Search forward for (_N-th) matching line.
?_p_a_t_t_e_r_n * Search backward for (_N-th) matching line.
n * Repeat previous search (for _N-th occurrence).
N Repeat previous search in reverse direction.
---------------------------------------------------
A search pattern may be preceded by one or more of:
! Search for NON-matching lines.
---------------------------------------------------------------------------
JJUUMMPPIINNGG
g * Go to first line in file (or line _N).
G * Go to last line in file (or line _N).
---------------------------------------------------
m_<_l_e_t_t_e_r_> Mark the current position with <letter>.
'_<_l_e_t_t_e_r_> Go to a previously marked position.
'' Go to the previous position.
---------------------------------------------------
A mark is any lower-case letter.
---------------------------------------------------------------------------
CCHHAANNGGIINNGG FFIILLEESS
:e [_f_i_l_e] Examine a new file.
:n * Examine the (_N-th) next file from the command line.
:p * Examine the (_N-th) previous file from the command line.
= ^G Print current file name.
---------------------------------------------------------------------------
MMIISSCCEELLLLAANNEEOOUUSS CCOOMMMMAANNDDSS
v Edit the current file with $VISUAL or vi(1).
---------------------------------------------------------------------------
OOPPTTIIOONNSS
-c Repaint by clearing rather than scrolling.
-e Quit at end of file.
-i Ignore case in searches.
-n _n_u_m_b_e_r Page number of lines per screenful.
-p _c_o_m_m_a_n_d Execute the specified commands.
-s Squeeze multiple blank lines.
-t _t_a_g Examine the file containing tag.
-u Change handling of backspaces.
|