| ACADEMIC COMPUTING and COMMUNICATIONS CENTER | |||||||||
KEDIT Text Editor for Windows | ||||
|
A text editor is a program that lets you create, look at and modify files. KEDIT is a very good full screen file editor for personal computers running Windows. It is patterned after IBM's XEDIT full screen editor for VM/CMS; people who are familiar with XEDIT will find it easy to get used to using KEDIT. KEDIT is a product of Mansfield Software. |
||||
| ||||
| Introduction to KEDIT | ||||
|
You can use KEDIT on a personal computer to enter the text of an electronic note,
a program or data to use with a package on your personal computer or to upload
to use on the mainframe, batch files, a list of names and addresses, or anything
else you want to collect together and store when using a personal computer.KEDIT
has simple printing and formatting functions (for example, the KEDIT PRINT
command), but you must keep in mind that KEDIT is not a word processor, which
both acts as a text editor and also prepares documents for printing.
Even though word processors are text editors and then some, there is still place to use KEDIT. You can use KEDIT to look at, enter or modify any ASCII file on your personal computer's disk storage. ASCII files are text files, intended to be read and/or maintained by people rather than your machine or programs you run on it. While most word processors can be used to work with ASCII files, normally your word processing files are not saved in text format and therefore they cannot be read by people or any program that expects to be using simple text files. Typically text files which are intended just to be read will have file names such as README or CONTENTS, and will have extentions such asTXT, HLP and DOC. Batch files, which contain a set of commands which can be executed by entering a single command, are also text files; their extention is BAT. Two important text files that you probable have and that you might someday want or need to modify areAUTOEXEC.BAT and CONFIG.SYS. |
||||
| -- KEDIT Availability | ||||
| KEDIT is available for public use on all of the UIC ACCC's public MS Windows personal computers. Eligible members of the UIC community may also purchasing KEDIT from the ACCC; see Software Sales and Help for more information. | ||||
| -- Using KEDIT's Help System | ||||
|
For additional information on using KEDIT, both introductory and detailed,
see the online help menu system which comes with KEDIT. Press F1
or enter HELP on the command line in KEDIT to begin using the help
system. Help is available for all items displayed between yellow arrowheads;
Tab to highlight the one you are interested in and press Enter.
Or enter HELP topic to view the help for a particular command
or topic.
Press Escape to close a help window and return to the previous window or topic. To open a submenu from the menu bar in the KEDIT help system, hold the Alt key down while you press the highlighted character for that submenu. |
||||
| -- Windows File Names and KEDIT | ||||
| Each of your files must have a unique name. Windows file names generally have two parts: the filename and the extension. To make it easier to tell which file contains which information, it is best to pick a filename and an extension which describes the contents and intended use of the file. For example, the file shown in Figure 1 is a text file containing a poem named "The Panther", thus its filename and extension arePANTHER.TXT. | ||||
| -- Using Home, Return, and Enter in KEDIT | ||||
Before you begin to use KEDIT, it is important for you to know how the
Return, Enter and Home keys function in KEDIT:
|
||||
| -- "Entering" Commands in KEDIT | ||||
KEDIT commands can be specified in three ways: from the command line, from
the prefix area or by an action key:
KEDIT commands can be classified according to what they do: cursor movement, scrolling, editing, blocking, text formatting, etc.
|
||||
| -- Using Windows Cut-and-Paste and Undo in KEDIT | ||||
|
In addition to the KEDIT-specific methods of inserting and changing text described below, you can use standard Windows cut-and-paste and Undo keystrokes and functions in KEDIT, even if you're working with multiple lines. Windows cut-and-paste and Undo and the XEDIT all command -- what more could you want from a text editor? |
||||
| Leaving KEDIT: FILE and QUIT Commands | ||||
|
While you work on a file in KEDIT, the copy of the file with your changes is kept only in the memory of your machine. When you finish working with the file, you must enter an KEDIT command to tell KEDIT what you want to do with it. If you are currently in input Mode, press Home to return to Edit Mode. To save a copy of the file as it currently appears in KEDIT, and then leave KEDIT, type FILE on the KEDIT command line and press Return or Enter. KEDIT writes the new copy of the file with your changes on your disk; if there was an older version of the file already on your disk, it is discarded after KEDIT is assured that the new file is properly stored. Finally, the KEDIT screen and your displayed file disappear, and you return to DOS (or wherever you were when you entered the KEDIT command). Note that you can also tell KEDIT to save the current copy of the file without leaving KEDIT; in this case, type the KEDIT command SAVE on the KEDIT command line and press Return or Enter. To leave KEDIT without saving any changes you may have made to the file you are working on, press F3 (it does not matter where on the screen your cursor is when you press F3). If you have not made any changes to the file, the KEDIT screen clears, and you return to DOS. But if you have made changes, KEDIT displays the message: Error 22: File has been changed - QQUIT to quit anywayIf you really do want to leave without storing the copy of the file you have been working on, type QQUIT on the KEDIT command line and press Return or Enter. If you decide you do want to keep the changes, and store the new version of the file on your disk, type FILE on the command line and press Return or Enter. |
||||
| Adding Data to a File | ||||
Using F2 action key to add a single line:To add a single line to a file, move your cursor to anywhere on the line above where you want to add the line, and press F2. Then type the line. Press Return or Enter when you are finished typing the line. F2 action key to add a long line: Using KEDIT's Input Mode to add a group of lines:To use Input Mode, the following SET option must be selected: SET INPUTMODE FULL And if you want KEDIT to break the lines you enter at a convenient inter-word blank, you will also need to have the margins set appropriately and WORDWRAP set ON. Once these options are set, on the KEDIT command line, type INPUT and then press Return or Enter. KEDIT will go into Input Mode. In Input Mode, the prefix areas (=====) and message line disappear, and the command line contains " Input Mode". The bottom half of the screen clears, and becomes the Input Zone. You cannot enter any KEDIT commands when you are in Input Mode, and you can not type on the command line. You will enter your lines in the Input Zone. The Input Zone is located between the current line and the line following it, so to input after a particular line in an existing file, make it the current line before you enter the INPUT command (see "Selecting a Current Line" ). When you enter Input Mode, your cursor is placed automatically at the beginning of the first line in the Input Zone. Begin typing the first line of your text here. When you complete typing a line, you may force KEDIT to allow you to begin typing on the next line in the file, by pressing Return or Enter. Or if WORDWRAP is ON and if you have appropriate margins set, you can just type, without regard to the end of a line, and KEDIT will generate a line break itself at a blank between two words. If you are allowing KEDIT to wrap the lines for you, it will scroll the screen up one line each time it generates a line break for you. If you are breaking your own lines, when you reach the bottom of the screen and press Return or Enter, the lines you have typed move to the top of the screen and a new Input Zone is created for you to type in. When you finish typing the text you are entering, press Home. This takes you out of Input Mode and back into Edit Mode (see "Edit Mode: Modifying Existing Lines in a File" ). |
||||
| Edit Mode: Modifying Existing Lines in a File | ||||
| Now what about the spelling errors, the lines you have left out, the paragraph you want to move? Make these changes in Edit Mode. | ||||
| -- Making Changes in the File Area | ||||
In Edit Mode, you can directly edit the lines of your file which are displayed
in the file area. Some of the ways to make changes the text of the file,
are:
|
||||
| -- Moving Around in Your File | ||||
Moving from screen to screen:What happens when your file is too large to display on one screen? There are several ways to move around in your file. The easiest way to move from screen to screen in your file is to press: It does not matter where your cursor is on the screen when you press these action keys. Finding a particular location in the file:When you want to find a particular place in your file, the KEDIT LOCATE command allows you to move to the next occurrence of a given string. LOCATE is an KEDIT command, so type the command on the KEDIT command line and press Return or Enter. Say for example, you want to find the string " Dear Mom".Type: /dear mom/ on the command line and press Return or Enter. By default, LOCATE in KEDIT ignores the case of its "targets", so this will find "dear mom", "Dear Mom", or, for that matter, "Dear MOM". KEDIT searches from the current line toward the End of File, and moves to your current line to the first occurrence of "dear mom", regardless of its case. If it does not find the string, it displays the error message: Error 17: Target not foundon the message line, and leaves the current line unchanged. There are many additional ways to use the LOCATE command that you will learn as you become more familiar with KEDIT. Splitting and joining lines:When you are editing in the file area, you might either want to break a line into two, or join two short lines into one. |
||||
| --Prefix Commands | ||||
|
KEDIT provides a group of line oriented prefix commands which allow you
to add, delete, move or copy a line or a block of lines. These commands
are typed in the prefix area (=====) of the line(s)
you are working with; press Home, not Return
or Enter, to execute the KEDIT prefix commands. If your KEDIT screen
does not display a prefix area, turn it on by typing SET PREFIX ON
on the command line and pressing Return or Enter.
The basic KEDIT prefix commands are:
|
||||
| -- The KEDIT Action Keys and Blocks | ||||
| There are KEDIT action keys which execute each of functions introduced in "Prefix Commands" , and there are other ways to define and use blocks in KEDIT. See the HELP which comes with KEDIT, by pressing F1 while you are using KEDIT. | ||||
| -- Selecting a Current Line | ||||
To make a specific line the current line, you can use:
|
||||
| KEDIT Commands | ||||
|
The following are KEDIT commands. KEDIT commands must be entered on the KEDIT
command line (beside the ====> at the bottom of the screen). If your cursor
is in the file area, press Home to execute any pending prefix commands
and return to the command line. Then type the command on the command line and
press Return or Enter.
The portions of the following command syntaxes which are enclosed in square brackets ([ and ]) are optional. The slashes ("/") below are used as string delimiters; the delimiters are required, but you can use any non-blank character (not included in the string!) as the delimiter instead of the slash. Many of the commands have additional options. Finally, the part of the command name given in uppercase letters is the minimum abbreviation for the command.
|
||||
| 2000-9-29 document@uic.edu |
|