home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
thesrc15.zip
/
overview
< prev
next >
Wrap
Text File
|
1993-08-15
|
4KB
|
91 lines
/*man-start*********************************************************************
THE - The Hessling Editor
OVERVIEW
========
THE is a text editor that uses both command line commands and key bindings
to operate. It is intended to be similar to the VM/CMS System Product
Editor, XEDIT and to Mansfield Software's, KEDIT.
The screen display consists of several windows:
- a main body window which displays the contents of the file being
editted,
- a command line from which commands may be issued,
- an optional prefix window which shows line numbers and from
which prefix commands can be issued
- an id window which displays the file name, row/col etc. for the
current file and
- a status line which indicates global status info like number of files
being editted, time etc.
An important distinction must be made between what is called the current
line and the focus line. The focus line is that line in the main body in
which the cursor is displayed. All commands bound to function keys use the
focus line as the initial line from which to begin executing the command.
Commands issued from the command line use the current line as the starting
line for execution of commands. The current line is the line in the main
body that is highlighted; by default line 7.
To move between the command line and the main body the 'tabcmd' command is
used. By default it is bound to the Home key (on PCs), the Do key
(on vt220s) and F12 (on xterms). If you prefer the XEDIT feel for arrow
keys, issue the 'set CMDArrow TAB TAB TAB' command from the command line.
To determine what keys are bound to what commands, type 'show' followed
by Return on the command line, then follow the directions displayed.
Key bindings may be changed for the current session by using the 'define'
command.
PROFILE FILE
============
Various session defaults may be changed on startup for an individual by
using a profile file. This file contains various commands that set the
current environment, including key bindings. This profile file can also be
used to process commands in batch mode. For example, to change all
occurrences of 'alligator' to 'crocodile' in the file file.ext in batch
mode, a profile file (prf.prf) with the following commands would be used:
'c/alligator/crocodile/ * *'
'file'
and the command
the -p prf.prf file.ext
would be issued.
This changes the first string enclosed in delimiters (either /,\ or @) to
the second string for every line (*) starting at the current line
(0 initially) changing each occurrence on a line (*).
Maybe you only want to change a string after the first line that contains
the string 'donkey', but only change the second occurrence of that string.
The profile commands would then be:
'/donkey/'
'c/alligator/crocodile/ * 1 2'
'file'
The change command uses a 'target' specification as its first parameter
after the string details. A target can be a number of lines, an absolute
line number or a string.
Number of line targets consist of either a positive integer, for
referencing lines toward the end of the file, negative for referencing
toward the start of the file or '*', which is all the remaining lines in
the file or '-*' which is all lines toward the start of the file.
An absolute line number in the form of ':n' is the line number in a file,
starting with line number 1.
A target is any string within the allowable target delimiters.
For more information on default key bindings see the *.hlp files. Detailed
documentation of each command is present in each of the comm*.c files.
--------------------------------------------------------------------------
========================================================================
COMMAND REFERENCE
========================================================================
**man-end**********************************************************************/