|
| 1 | + |
| 2 | + SSUUMMMMAARRYY OOFF LLEESSSS 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 H Display this help. |
| 9 | + q :q Q :Q ZZ Exit. |
| 10 | + --------------------------------------------------------------------------- |
| 11 | + |
| 12 | + MMOOVVIINNGG |
| 13 | + |
| 14 | + e ^E j ^N CR * Forward one line (or _N lines). |
| 15 | + y ^Y k ^K ^P * Backward one line (or _N lines). |
| 16 | + f ^F ^V SPACE * Forward one window (or _N lines). |
| 17 | + b ^B ESC-v * Backward one window (or _N lines). |
| 18 | + z * Forward one window (and set window to _N). |
| 19 | + w * Backward one window (and set window to _N). |
| 20 | + ESC-SPACE * Forward one window, but don't stop at end-of-file. |
| 21 | + d ^D * Forward one half-window (and set half-window to _N). |
| 22 | + u ^U * Backward one half-window (and set half-window to _N). |
| 23 | + ESC-) RightArrow * Right one half screen width (or _N positions). |
| 24 | + ESC-( LeftArrow * Left one half screen width (or _N positions). |
| 25 | + ESC-} ^RightArrow Right to last column displayed. |
| 26 | + ESC-{ ^LeftArrow Left to first column. |
| 27 | + F Forward forever; like "tail -f". |
| 28 | + ESC-F Like F but stop when search pattern is found. |
| 29 | + r ^R ^L Repaint screen. |
| 30 | + R Repaint screen, discarding buffered input. |
| 31 | + --------------------------------------------------- |
| 32 | + Default "window" is the screen height. |
| 33 | + Default "half-window" is half of the screen height. |
| 34 | + --------------------------------------------------------------------------- |
| 35 | + |
| 36 | + SSEEAARRCCHHIINNGG |
| 37 | + |
| 38 | + /_p_a_t_t_e_r_n * Search forward for (_N-th) matching line. |
| 39 | + ?_p_a_t_t_e_r_n * Search backward for (_N-th) matching line. |
| 40 | + n * Repeat previous search (for _N-th occurrence). |
| 41 | + N * Repeat previous search in reverse direction. |
| 42 | + ESC-n * Repeat previous search, spanning files. |
| 43 | + ESC-N * Repeat previous search, reverse dir. & spanning files. |
| 44 | + ESC-u Undo (toggle) search highlighting. |
| 45 | + &_p_a_t_t_e_r_n * Display only matching lines |
| 46 | + --------------------------------------------------- |
| 47 | + A search pattern may be preceded by one or more of: |
| 48 | + ^N or ! Search for NON-matching lines. |
| 49 | + ^E or * Search multiple files (pass thru END OF FILE). |
| 50 | + ^F or @ Start search at FIRST file (for /) or last file (for ?). |
| 51 | + ^K Highlight matches, but don't move (KEEP position). |
| 52 | + ^R Don't use REGULAR EXPRESSIONS. |
| 53 | + --------------------------------------------------------------------------- |
| 54 | + |
| 55 | + JJUUMMPPIINNGG |
| 56 | + |
| 57 | + g < ESC-< * Go to first line in file (or line _N). |
| 58 | + G > ESC-> * Go to last line in file (or line _N). |
| 59 | + p % * Go to beginning of file (or _N percent into file). |
| 60 | + t * Go to the (_N-th) next tag. |
| 61 | + T * Go to the (_N-th) previous tag. |
| 62 | + { ( [ * Find close bracket } ) ]. |
| 63 | + } ) ] * Find open bracket { ( [. |
| 64 | + ESC-^F _<_c_1_> _<_c_2_> * Find close bracket _<_c_2_>. |
| 65 | + ESC-^B _<_c_1_> _<_c_2_> * Find open bracket _<_c_1_> |
| 66 | + --------------------------------------------------- |
| 67 | + Each "find close bracket" command goes forward to the close bracket |
| 68 | + matching the (_N-th) open bracket in the top line. |
| 69 | + Each "find open bracket" command goes backward to the open bracket |
| 70 | + matching the (_N-th) close bracket in the bottom line. |
| 71 | + |
| 72 | + m_<_l_e_t_t_e_r_> Mark the current top line with <letter>. |
| 73 | + M_<_l_e_t_t_e_r_> Mark the current bottom line with <letter>. |
| 74 | + '_<_l_e_t_t_e_r_> Go to a previously marked position. |
| 75 | + '' Go to the previous position. |
| 76 | + ^X^X Same as '. |
| 77 | + ESC-M_<_l_e_t_t_e_r_> Clear a mark. |
| 78 | + --------------------------------------------------- |
| 79 | + A mark is any upper-case or lower-case letter. |
| 80 | + Certain marks are predefined: |
0 commit comments