Help Guide for VMED -- Virtual Buffer version of ED2 page 1 =========+========================================+============ Command | Action taken | Arguments =========+========================================+============ append | Appends file to buffer above cursor. | filename ---------+----------------------------------------+------------ line | Moves cursor to line specified. | line # ---------+----------------------------------------+------------ put | Writes part of buffer to a file with | filename | prompts for starting and ending line. | ---------+----------------------------------------+------------ find | Pattern search from cursor location, | none | enter "edit" mode. After first occur- | | ance is located, in edit mode | | locates next from cursor position. | | With prompt for search pattern. | ---------+----------------------------------------+------------ search | Display all lines containing pattern | from, to ---------+----------------------------------------+------------ change | Search-and-replace pattern with | from, to | prompts for old and new patterns | ---------+----------------------------------------+------------ new | Clears buffer and file name. If buffer | none | has been modified since it was loaded | | or saved, verification is requested. | ---------+----------------------------------------+------------ delete | Deletes the specified lines. If no | from, to or del | arguments are given, the current line | | is assumed. | ---------+----------------------------------------+------------ dos | Return to LDOS. If buffer has been | none or quit | modified since it was loaded or saved, | | verification is requested. | ---------+----------------------------------------+------------ list | List specified lines to printer using | from, to | same width as screen. | ---------+----------------------------------------+------------ print | List specified lines to printer using | from, to | width set for LISTW in ed0. | ---------+----------------------------------------+------------ load | Loads file fn into empty buffer. If | filename | buffer is not empty AND has been mod- | | ified since loaded or saved, permis- | | sion to clear buffer is requested. | ---------+----------------------------------------+------------ name | Assigns a filename to the contents of | filename | buffer. This name will be used as the | | default name for a "save" operation. | ---------+----------------------------------------+------------ save | Save buffer contents to the file name | filename | specified or {default} that shown in | {optional} | the screen header. | ---------+----------------------------------------+------------ - continued - Help Guide for VMED -- Virtual Buffer version of ED2 page 2 =========+========================================+============ Command | Action taken | Arguments =========+========================================+============ tab | Reset number of columns for | columns | (x'09') characters. On start-up, | | is set at 4 columns for LC source. | ---------+----------------------------------------+------------ copy | Duplicates a block of lines from one | start, end | location to another, with prompts for | destination | start and end of block, as well as | {optional} | line number block is to proceed (if | | none are passed in the command line). | ---------+----------------------------------------+------------ move | Same as "copy", except original block | start, end | is deleted during move. | destination | | {optional} ---------+----------------------------------------+------------ top | Move cursor to first line of buffer | none | and enter "edit" mode. may be used | | while in "edit" mode. | ---------+----------------------------------------+------------ bottom | Move cursor to last line of buffer and | none | enter "edit" mode. may be used in | | in "edit" mode. | ---------+----------------------------------------+------------ keep | Stores the specified lines to a temp- | from, to or hold | orary file for use in a "paste" oper- | {defaults | ation. All "keep" operations will | to current | append to the temp file until a | line only} | "paste" is done. | ---------+----------------------------------------+------------ paste | Copies the entire contents of the temp | none | file created by "keep" to be above the | | current line and resets a flag so that | | the next "keep" starts a new temp file.| | Multiple copies of the temp file may | | be made as long as no "keep"s are done | | in between. Temp files are uneffected | | by exitting VMED or rebooting. | ---------+----------------------------------------+------------ Numeric arguments are to be in the form "num1, num2" where the separator may be either a space, comma or both. If only one argument is given, both will be assumed to be the same. If no arguments are given, defaults vary from command to command. For example, "delete" and "keep" both default to be the current line only. Special cases are made for the letters 't', 'b' and 'r' as well as the period, refering to the top, bottom, remembered (see key, page 4) and current line, respectively. - continued - Help Guide for VMED -- Virtual Buffer version of ED2 page 3 Note| The following may be changed in ed1/ccc to suit user =========+===================================================== Command | keys | Action =========+===================================================== | Clear key used for many of the following. ---------+----------------------------------------------------- <|> | Enter "edit" mode from any mode. ---------+----------------------------------------------------- <-> | Enter "insert" mode from any mode. =========+===================================================== | Keys used in "edit" and "insert" modes =========+===================================================== <0> | Enter "command" mode ---------+----------------------------------------------------- <1> | Split current line at cursor into two lines ---------+----------------------------------------------------- <3> | Join current line with line above ---------+----------------------------------------------------- <5> | Abort operations done on current line and restore ---------+----------------------------------------------------- <7> | Delete character to left of cursor ---------+----------------------------------------------------- <9> | Abort current operation and restore line. ---------+----------------------------------------------------- | Insert line above cursor ---------+----------------------------------------------------- | Insert line below cursor =========+===================================================== | Keys used only in "edit" mode =========+===================================================== | Move to last line of buffer ---------+----------------------------------------------------- | Change one character ---------+----------------------------------------------------- | Delete current line ---------+----------------------------------------------------- | Move cursor to end of current line ---------+----------------------------------------------------- | Find next occurance of string from "find" command ---------+----------------------------------------------------- nnn | Go to line nnn { not supported in current version } ---------+----------------------------------------------------- | replace characters until <0>, <->, <|> | or cursor keys used ---------+----------------------------------------------------- | Enter "insert" mode ---------+----------------------------------------------------- c | Kill until character 'c' or end of line encountered ---------+----------------------------------------------------- | Move cursor to start of current line ---------+-----------------------------------------------------

| Display next page, top line becomes current line. | Display will begin at current line + SCRNL1. | If current line is at top of display, last line of | screen will be now be top of screen. ---------+----------------------------------------------------- - continued - Help Guide for VMED -- Virtual Buffer version of ED2 page 4 =========+===================================================== | Display previous page, top line becomes current | line. Display will begin at current line - SCRNL1. | If current line is at top of display, it will now | be at bottom of screen. ---------+----------------------------------------------------- | Position cursor to end of current line and enter | "insert" mode. ---------+----------------------------------------------------- | Remember current line number. may be recalled by any | command using a numeric argument by typing 'r' in | place of a line number. ---------+----------------------------------------------------- - end -