home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / less3292.zip / less.hlp < prev    next >
Text File  |  1996-07-29  |  8KB  |  149 lines

  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.  
  7.   h  H                 Display this help.
  8.   q  :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.   ESC-SPACE         *  Forward  one window, but don't stop at end-of-file.
  17.   d  ^D             *  Forward  one half-window (and set half-window to _N).
  18.   u  ^U             *  Backward one half-window (and set half-window to _N).
  19.   ESC-(  RightArrow *  Left  8 character positions (or _N positions).
  20.   ESC-)  LeftArrow  *  Right 8 character positions (or _N positions).
  21.   F                    Forward forever; like "tail -f".
  22.   r  ^R  ^L            Repaint screen.
  23.   R                    Repaint screen, discarding buffered input.
  24.         ---------------------------------------------------
  25.         Default "window" is the screen height.
  26.         Default "half-window" is half of the screen height.
  27.         ---------------------------------------------------
  28.   /_p_a_t_t_e_r_n          *  Search forward for (_N-th) matching line.
  29.   ?_p_a_t_t_e_r_n          *  Search backward for (_N-th) matching line.
  30.   n                 *  Repeat previous search (for _N-th occurrence).
  31.   N                 *  Repeat previous search in reverse direction.
  32.   ESC-n             *  Repeat previous search, spanning files.
  33.   ESC-N             *  Repeat previous search, reverse dir. & spanning files.
  34.   ESC-u                Undo (toggle) search highlighting.
  35.         ---------------------------------------------------
  36.         Search patterns may be modified by one or more of:
  37.         ^N or !  Search for NON-matching lines.
  38.         ^E or *  Search multiple files (pass thru END OF FILE).
  39.         ^F or @  Start search at FIRST file (for /) or last file (for ?).
  40.         ^K       Highlight matches, but don't move (KEEP position).
  41.         ^R       Don't use REGULAR EXPRESSIONS.
  42.         ---------------------------------------------------
  43.   g  <  ESC-<       *  Go to first line in file (or line _N).
  44.   G  >  ESC->       *  Go to last line in file (or line _N).
  45.   p  %              *  Go to beginning of file (or _N percent into file).
  46.   {  (  [           *  Find close bracket } ) ].
  47.   }  )  ]           *  Find open bracket { ( [.
  48.   ESC-^F _<_c_1_> _<_c_2_>  *  Find close bracket _<_c_2_>.
  49.   ESC-^B _<_c_1_> _<_c_2_>  *  Find open bracket _<_c_1_> 
  50.         ---------------------------------------------------
  51.         Each "find close bracket" command goes forward to the close bracket 
  52.           matching the (_N-th) open bracket in the top line.
  53.         Each "find open bracket" command goes backward to the open bracket 
  54.           matching the (_N-th) close bracket in the bottom line.
  55.         ---------------------------------------------------
  56.   m_<_l_e_t_t_e_r_>            Mark the current position with <letter>.
  57.   '_<_l_e_t_t_e_r_>            Go to a previously marked position.
  58.   ''                   Go to the previous position.
  59.   ^X^X                 Same as '.
  60.         ---------------------------------------------------
  61.         A mark is any upper-case or lower-case letter.
  62.         Certain marks are predefined:
  63.              ^  means  beginning of the file
  64.              $  means  end of the file
  65.         ---------------------------------------------------
  66.  
  67.   :e [_f_i_l_e]            Examine a new file.
  68.   ^X^V                 Same as :e.
  69.   :n                *  Examine the (_N-th) next file from the command line.
  70.   :p                *  Examine the (_N-th) previous file from the command line.
  71.   :x                *  Examine the first (or _N-th) file from the command line.
  72.   =  ^G  :f            Print current file name.
  73.   V                    Print version number of "less".
  74.  
  75.   -_<_f_l_a_g_>              Toggle a command line option [see OPTIONS below].
  76.   __<_f_l_a_g_>              Display the setting of a command line option.
  77.   +_c_m_d                 Execute the less cmd each time a new file is examined.
  78.  
  79.   !_c_o_m_m_a_n_d             Execute the shell command with $SHELL.
  80.   |XX_c_o_m_m_a_n_d            Pipe file between current pos & mark XX to shell command.
  81.   v                    Edit the current file with $VISUAL or $EDITOR.
  82.  
  83.         ---------------------------------------------------
  84.                            OOPPTTIIOONNSS
  85.  
  86.         Most options may be changed either on the command line,
  87.         or from within less by using the - command.
  88.  
  89.   -?            Display help (from command line).
  90.   -a            Forward search skips current screen.
  91.   -b [_N]        Number of buffers.
  92.   -B            Don't automatically allocate buffers for pipes.
  93.   -c  -C        Repaint by scrolling/clearing.
  94.   -d            Dumb terminal.
  95.   -e  -E        Quit at end of file.
  96.   -f            Force open non-regular files.
  97.   -g            Highlight only last match for searches.
  98.   -G            Don't highlight any matches for searches.
  99.   -h [_N]        Backward scroll limit.
  100.   -i            Ignore case in searches.
  101.   -I            Ignore case in searches and in search patterns.
  102.   -j [_N]        Screen position of target lines.
  103.   -k [_f_i_l_e]     Use a lesskey file.
  104.   -m  -M        Set prompt style.
  105.   -n  -N        Use line numbers.
  106.   -o [_f_i_l_e]     Copy to log file (standard input only).
  107.   -O [_f_i_l_e]     Copy to log file (unconditionally overwrite).
  108.   -p [_p_a_t_t_e_r_n]  Start at pattern (from command line).
  109.   -P [_p_r_o_m_p_t]   Define new prompt.
  110.   -q  -Q        Quiet the terminal bell.
  111.   -r            Output "raw" control characters.
  112.   -s            Squeeze multiple blank lines.
  113.   -S            Chop long lines.
  114.   -t [_t_a_g]      Find a tag.
  115.   -T [_t_a_g_s_f_i_l_e] Use an alternate tags file.
  116.   -u  -U        Change handling of backspaces.
  117.   -V            Display the version number of "less".
  118.   -w            Display ~ for lines after end-of-file.
  119.   -x [_N]        Set tab stops.
  120.   -X            Don't use termcap init/deinit strings.
  121.   -y [_N]        Forward scroll limit.
  122.   -z [_N]        Set size of window.
  123.  
  124.  
  125.         ---------------------------------------------------
  126.                           LLIINNEE EEDDIITTIINNGG
  127.  
  128.         These keys can be used to edit text being entered 
  129.         on the "command line" at the bottom of the screen.
  130.  
  131.  RightArrow                       ESC-l     Move cursor right one character.
  132.  LeftArrow                        ESC-h     Move cursor left one character.
  133.  CNTL-RightArrow  ESC-RightArrow  ESC-w     Move cursor right one word.
  134.  CNTL-LeftArrow   ESC-LeftArrow   ESC-b     Move cursor left one word.
  135.  HOME                             ESC-0     Move cursor to start of line.
  136.  END                              ESC-$     Move cursor to end of line.
  137.  BACKSPACE                                  Delete char to left of cursor.
  138.  DELETE                           ESC-x     Delete char under cursor.
  139.  CNTL-BACKSPACE   ESC-BACKSPACE             Delete word to left of cursor.
  140.  CNTL-DELETE      ESC-DELETE      ESC-X     Delete word under cursor.
  141.  CNTL-U           ESC (MS-DOS only)         Delete entire line.
  142.  UpArrow                          ESC-k     Retrieve previous command line.
  143.  DownArrow                        ESC-j     Retrieve next command line.
  144.  TAB                                        Complete filename & cycle.
  145.  SHIFT-TAB                        ESC-TAB   Complete filename & reverse cycle.
  146.  CNTL-L                                     Complete filename, list all.
  147.  
  148.  
  149.