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 . '_<_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.