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