(edited 21-Jun) (Making Changes\edit_chap)

(Changingtext file) (Text filechanging it) Every editing operation consists of two steps: (numbered) Moving the cursor to the point in your file where you want to perform an operation Performing that operation

(curs_chap) describes the KED function keys and commands you can use to move the cursor. This chapter describes the keys and commands you can use to: (UNNUMBERED) Delete and restore a character, word, or line of text (Sections (delchar_sec\VALUE), (delword_sec\VALUE), and (delline_sec\VALUE)) Insert a blank line ((open_sec)) Empty the paste buffer ((CLEAR_SEC)) Delete and restore a large section of text ((deletelarge_sec)) Insert a new section of text in multiple locations ((insertnew_sec)) Remove a section of text from one place in your file and insert it in another place ((cut_sec)) Replace a section of text with another section ((rep_sec)) Substitute a character string for multiple occurrences of another character string ((sub_sec)) Force alphabetic characters to uppercase or lowercase ((forcecase_sec)) Change alphabetic characters from uppercase to lowercase or lowercase to uppercase ((changecase_sec)) Repeat KED editing operations ((repeat_sec))

To perform those operations, you must begin your work session to create or edit a file. You cannot make any changes while inspecting a file. (Deleting and Restoring a Character\delchar_SEC)

(Deleting and restoringcharacter) (Characterdeleting and restoring) (Restoringcharacter) A character is any character in the ASCII set listed in (asci_ax), including the horizontal tab character, all line terminators, and all nonprinting characters.

To delete a character: (Keypad keysDELCHAR) (DELCHAR function) (FunctionsDELCHAR) (NUMBERED) Move the cursor to the character you want to delete. Press (DELCHAR).

KED deletes the character, stores it in a character buffer, and closes up the (Character buffer) (Bufferscharacter) resulting space.

Before: emulato(l)r

After: emulato(r)

If you move the cursor to the line terminator, KED deletes that terminator and moves the next line up to the end of the line that contained the terminator.

Before: emulator-( ) system function

After: emulator-(s)ystem function

You can also use the () (delete key) to delete a character as described in (writ_chap).

The deleted character remains in the character buffer until the next time you press (DELCHAR) or (), causing KED to store a new character in the buffer.

(Characterrestoring) To restore that character to your text press (GOLD) and (UNDELCHAR) or (GOLD) and (). (Keypad keysUNDELCHAR) (UNDELCHAR function) (FunctionsUNDELCHAR) (GOLD delete function) (FunctionsGOLD delete) KED inserts the character at the point where the cursor is located, shifting the remainder of the line one character to the right.

While responding to a KED prompt, you cannot restore a character you deleted unless you type it again. (Deleting and Restoring a Word\delword_SEC)

(Deleting and restoringword) (Worddeleting and restoring) (Deleting word) (Restoringword) A word is one or more characters followed by one or more spaces. KED also considers the horizontal-tab character, all line terminators, and any spaces preceding a character to be words.

You can use the DELWORD keypad key or CTRL/J keyboard keys to delete a word. (Keypad keysDELWORD) (DELWORD function) (FunctionsDELWORD) (Keyboard keysCTRL/J) (CTRL/J function) (FunctionsCTRL/J) If you are using a VT100-compatible terminal, you can also use the line-feed (Keyboard keysLF) (LF function) (FunctionsLF) (LF) keyboard key to delete a word.

Then, you can use the GOLD and UNDELWORD keypad keys or the GOLD keypad key and (Keypad keysUNDELWORD) (UNDELWORD function) (FunctionsUNDELWORD) (GOLD CTRL/J function) (FunctionsGOLD CTRL/J) CTRL/J keyboard keys to restore that word to your text. If you are using a VT100-compatible terminal, you can also use the GOLD keypad key and line-feed (FunctionsGOLD and line feed) (GOLD LF function) (FunctionsGOLD LF) (LF) keyboard key to restore that word to your text. (DELWORD Keypad Key)

(Keypad keysDELWORD) (DELWORD function) (FunctionsDELWORD) To delete a word or the part of a word following the cursor: (NUMBERED) Move the cursor to the word or part of a word you want to delete. Press (DELWORD).

KED deletes the word or part of a word, stores it (up to 80 characters) in a (Word buffer) (Buffersword) word buffer, and closes up the resulting space.

Before: red, blue, green, (t)urnip, yellow

After: red, blue, green, (y)ellow

If you move the cursor inside a word, KED deletes only the part that follows the cursor.

Before: red, blue, green, yell(o)w

After: red, blue, green, yell( )

The deleted word remains in the word buffer until you press (DELWORD), (CTRL/J), or (LF) (the line-feed key), causing KED to store a new word in the buffer.

To restore that word to your text, press (GOLD) and (UNDELWORD), (GOLD) and (CTRL/J), or (GOLD) and (LF). (Keypad keysUNDELWORD) (UNDELWORD function) (FunctionsUNDELWORD) (GOLD CTRL/J function) (FunctionsGOLD CTRL/J) (GOLD LF function) (FunctionsGOLD LF)

KED inserts the word at the point where the cursor is located, shifting the remainder of the line the appropriate number of characters to the right. (CTRL/J Keyboard Keys or Line-feed (LF) Keyboard Key)

(Keyboard keysCTRL/J) (CTRL/J function) (FunctionsCTRL/J) (Keyboard keysLF) (LF function) (FunctionsLF) (Line-feed keyboard keySee LF function) (Keyboard keysline feed) To delete a word or the part of a word preceding the cursor: (NUMBERED) Move the cursor to the right side of the word or part of a word you want to delete. Press (CTRL/J). If you are using a VT100-compatible terminal, you can press (LF) (the line-feed key) instead.

KED deletes all the characters that precede the cursor up to the beginning of the word, stores those characters (up to 80) in a word buffer, and closes up the resulting space.

Before: red, blue, green, turnip, (y)ellow

After: red, blue, green, (y)ellow

If you move the cursor inside a word, KED deletes only the part that precedes the cursor.

Before: red, blue, green, yel(l)ow

After: red, blue, green, (l)ow

The deleted word remains in the word buffer until you press (CTRL/J), (LF) (the line-feed key), or (DELWORD), causing KED to store a new word in the buffer.

(Wordrestoring) To restore that word to your text, press (GOLD) and (UNDELWORD), (GOLD) and (CTRL/J), or (GOLD) and (LF). (Keypad keysUNDELWORD) (UNDELWORD function) (FunctionsUNDELWORD) (GOLD CTRL/J function) (FunctionsGOLD CTRL/J) (FunctionsGOLD and line feed) (GOLD LF function) (FunctionsGOLD LF)

KED inserts the word at the point where the cursor is located, shifting the remainder of the line the appropriate number of characters to the right. (Deleting and Restoring a Line\delline_SEC)

(Deleting and restoringline) (Linedeleting and restoring) (Linerestoring) (Deleting line) (Restoringline) A line is one or more characters or words followed by a line terminator.

You can use the (DELLINE) or (DELEOL) keypad key or the (CTRL/U) keyboard keys to (Keypad keysDELLINE) (DELLINE function) (FunctionsDELLINE) (Keypad keysDELEOL) (DELEOL function) (FunctionsDELEOL) (Keyboard keysCTRL/U) (CTRL/U function) (FunctionsCTRL/U) delete a line.

Then, you can use the GOLD and UNDELLINE keypad keys or the (GOLD) keypad key and (CTRL/U) keyboard keys to restore that line to your text. (Keypad keysUNDELLINE) (UNDELLINE function) (FunctionsUNDELLINE) (GOLD CTRL/U function) (FunctionsGOLD CTRL/U) (DELLINE Keypad Key)

(Keypad keysDELLINE) (DELLINE function) (FunctionsDELLINE) To delete a line or the remainder of a line following the cursor: (NUMBERED) Move the cursor to the first character or word in the line you want to delete. Press (DELLINE).

KED deletes the line, stores it (up to 132 characters) in a line buffer, and (Line buffer) (Buffersline) closes up the resulting space.

Before: Chester Arthur Millard Fillmore (R)ip Torn James Garfield

After: Chester Arthur Millard Fillmore (J)ames Garfield

If you move the cursor beyond the first character in a line, KED deletes all the characters between the cursor and the beginning of the next line, including the line terminator, and moves the next line up to the end of the line that contained the terminator.

Before: Chester Arthur Millard (F)illmore James Garfield

After: Chester Arthur Millard (J)ames Garfield

The deleted line remains in the line buffer until you press (DELLINE), (CTRL/U), or (GOLD) and (DELEOL), causing KED to store a new line in the buffer.

To restore that line to your text, press (GOLD) and (UNDELLINE) or (GOLD) and (CTRL/U). (Keypad keysUNDELLINE) (UNDELLINE function) (FunctionsUNDELLINE) (GOLD CTRL/U function) (FunctionsGOLD CTRL/U)

KED inserts the line at the point where the cursor is located, shifting the remaining lines down one line. (DELEOL Keypad Key)

(Keypad keysDELEOL) (DELEOL function) (FunctionsDELEOL) To delete a line or the remainder of a line following the cursor but not the line terminator: (NUMBERED) Move the cursor to the first character or word in the line you want to delete. Press (GOLD) and (DELEOL).

KED deletes the line, stores it (up to 132 characters) in a line buffer, but does not close up the resulting vertical space.

Before: Chester Arthur Millard Fillmore (R)ip Torn James Garfield

After: Chester Arthur Millard Fillmore ( ) James Garfield

If you move the cursor beyond the first character in a line but not to the line terminator, KED deletes only the printing characters that remain in the line.

Before: Chester Arthur Millard Fillmore Rip (T)orn James Garfield

After: Chester Arthur Millard Fillmore Rip ( ) James Garfield

If you move the cursor to the line terminator, KED deletes the next line.

Before: Chester Arthur Millard Fillmore Rip Torn( ) James Garfield

After: Chester Arthur Millard Fillmore Rip Torn( )

The deleted line remains in the line buffer until you press (DELEOL), (CTRL/U), or (GOLD) and (DELLINE), causing KED to store a new line in the buffer.

To restore that line to your text, press (GOLD) and (UNDELLINE) or (GOLD) and (CTRL/U). (Keypad keysUNDELLINE) (UNDELLINE function) (FunctionsUNDELLINE) (GOLD CTRL/U function) (FunctionsGOLD CTRL/U)

KED inserts the line at the point where the cursor is located. (CTRL/U Keyboard Keys)

(Keyboard keysCTRL/U) (CTRL/U function) (FunctionsCTRL/U) To delete a line or the part of a line preceding the cursor: (NUMBERED) Move the cursor to the right side of the line or part of a line you want to delete. Press (CTRL/U).

KED deletes all the characters that precede the cursor up to the beginning of the line, stores those characters (up to 132) in a line buffer, but does not close up the resulting vertical space.

Before: Chester Arthur Millard Fillmore Rip Torn( ) James Garfield

After: Chester Arthur Millard Fillmore ( ) James Garfield

If you move the cursor to delete a part of the line, KED deletes only the part that precedes the cursor.

Before: Chester Arthur Millard Fillmore Rip (T)orn James Garfield

After: Chester Arthur Millard Fillmore (T)orn James Garfield

If you move the cursor to the beginning of a line, KED deletes the preceding line.

Before: Chester Arthur Millard Fillmore (R)ip Torn James Garfield

After: Chester Arthur (R)ip Torn James Garfield

The deleted line remains in the line buffer until you press (CTRL/U), (DELLINE), or (GOLD) and (DELEOL), causing KED to store a new line in the buffer.

To restore that line to your text, press (GOLD) and (UNDELLINE) or (GOLD) and (CTRL/U). (Keypad keysUNDELLINE) (UNDELLINE function) (FunctionsUNDELLINE) (GOLD CTRL/U function) (FunctionsGOLD CTRL/U)

KED inserts the line at the point where the cursor is located.

If you are responding to a KED prompt, CTRL/U deletes all the characters you (Keyboard keysCTRL/U) (CTRL/U function) (FunctionsCTRL/U) typed, and you cannot restore them (except by typing them again). (Inserting a Blank Line\OPEN_SEC)

(Insertingblank line) (Blank lineinserting) (Lineblankinserting) You can use the OPENLINE function to insert a blank line within a line of text or between two lines of text. (To insert a blank line within a line of text:) (Keypad keysOPENLINE) (OPENLINE function) (FunctionsOPENLINE) (NUMBERED) Move the cursor to the point in the text line where you want the blank line to be inserted. Press (RETURN) and then press (GOLD) and (OPENLINE).

KED moves the rest of the text line to the next line down, inserts a blank line between the two text lines, and leaves the cursor at the beginning of the open text line.

Before: Chester Arthur(M)illard Fillmore

After: Chester Arthur ( ) Millard Fillmore

To delete the blank line, press (DELLINE) and (). (Keypad keysDELLINE) (DELLINE function) (FunctionsDELLINE) (To insert a blank line between two lines of text:) (Keypad keysOPENLINE) (OPENLINE function) (FunctionsOPENLINE) (NUMBERED) Move the cursor to the beginning of the second text line. Press (GOLD) and (OPENLINE).

KED inserts a blank line between the two text lines and moves the cursor to the beginning of the blank line.

Before: Chester Arthur (M)illard Fillmore

After: Chester Arthur ( ) Millard Fillmore

To delete the blank line, press (DELLINE). (Keypad keysDELLINE) (DELLINE function) (FunctionsDELLINE) (Emptying the Paste Buffer\CLEAR_SEC)

(Emptying paste buffer) (Paste bufferdeleting contents) (Bufferspastedeleting contents) (Deleting contents of paste buffer) (Deletingpaste buffer contents) You should empty the paste buffer before: (unnumbered) Using the REPLACE function ((deletelarge_SEC)) to delete a large section of text Using the SUBSTITUTE function ((SUB_sec)) to delete multiple occurrences of a character string

To empty the paste buffer: (CLEAR PASTE command) (CommandsCLEAR PASTE) (NUMBERED) Press (GOLD) and (COMMAND). Type: (CLEAR PASTE) Press (ENTER).

KED deletes the contents of the paste buffer.

In other words: (simple) (GOLD) (COMMAND) (CLEAR PASTE) (ENTER) (Deleting and Restoring Large Sections of Text\deletelarge_sec)

You can use the SELECT and CUT functions to delete a large section of text. (Keypad keysSELECT) (SELECT function) (FunctionsSELECT) (Keypad keysCUT) (CUT function) (FunctionsCUT) (NUMBERED) Select the section of text you want to delete. (ALPHABETIC) Move the cursor to the first character in that section. Press (SELECT). Move the cursor to the character following the last character in that section.

KED highlights your selection by underlining it or displaying it in reverse video (reversing the text and background).

If you make a mistake in selecting the section you want to delete, you can press (GOLD) (Keypad keysRESET) (RESET function) (FunctionsRESET) and (RESET) or back up the cursor to the end of the section you want to delete. Press (CUT).

KED deletes the text you selected (up to the limit of your system) and stores it in a paste buffer.

In other words: (simple) Move the cursor to the first character. (SELECT) Move the cursor to the character following the last character. (CUT)

To restore the text you deleted, press (GOLD) and (PASTE). (Keypad keysPASTE) (PASTE function) (FunctionsPASTE)

KED inserts the contents of the paste buffer (the text you deleted) at the point where the cursor is located and moves the cursor to the first character following the inserted text.

The size of the paste buffer depends on your operating system, the monitor (Paste buffer) (Bufferspaste) you are using, and the amount of memory in your system. The minimum size is 512 characters. If the paste buffer is too small to hold your selection, KED signals you, by sounding a beeper or reversing the text and background on your terminal, and does not perform the cut operation. If you press (HELP), KED displays: Select range too large for CUT

When the text you want to delete is too large for the paste buffer, you can use the CLEAR PASTE command and the SELECT and REPLACE (CLEAR PASTE command) (CommandsCLEAR PASTE) (Keypad keysSELECT) (SELECT function) (FunctionsSELECT) (Keypad keysREPLACE) (REPLACE function) (FunctionsREPLACE) functions instead of the SELECT and CUT functions. However, you cannot restore the deleted text unless you use a backup copy of your input file. (numbered) Empty the paste buffer as described in (CLEAR_SEC). Use the SELECT function to select the text you want to delete. Press (GOLD) and (REPLACE).

In other words: (simple) (GOLD) (COMMAND) (CLEAR PASTE) (ENTER) Move the cursor to the first character. (SELECT) Move the cursor to the character following the last character. (GOLD) (REPLACE) (Inserting a New Section of Text in Multiple Locations\insertnew_sec)

(Insertingnew section of text in multiple locations) (New section of textinserting in multiple locations) (Section of textnewinserting in multiple locations) (Text sectionnewinserting in multiple locations) You can use the SELECT, CUT, and PASTE functions to insert a new section of text in multiple locations. (Keypad keysSELECT) (SELECT function) (FunctionsSELECT) (Keypad keysCUT) (CUT function) (FunctionsCUT) (Keypad keysPASTE) (PASTE function) (FunctionsPASTE) (numbered) Press (SELECT). Type in the text you want to insert.

KED highlights the text as you type it by underlining it or displaying it in reverse video (reversing the text and background). Press (CUT).

KED deletes the text you typed and stores it in a paste buffer. Move the cursor to the proper location. Press (GOLD) and (PASTE).

KED inserts the contents of the paste buffer (the text you typed) at the point where the cursor is located and moves the cursor to the first character following the inserted text. Repeat steps 4 and 5 as many times as necessary.

In other words: (simple) (SELECT) (text-to-insert) (CUT) Move the cursor to the proper location. (GOLD) (PASTE) Move the cursor to another location. (GOLD) (PASTE) Move the cursor to another location. (GOLD) (PASTE)

Your text remains in the paste buffer until you press (CUT) (causing KED to store new text in that buffer) or until you enter a CLEAR PASTE command as described in (clear_sec). (Removing an Existing Section of Text and Inserting It in Another Location\CUT_SEC)

(Removingsection of text) (Insertingsection of text) (Section of textremoving and inserting) (Section of textinserting) (Textsection ofremoving and inserting) To remove a section of text and insert it in another location, use the SELECT, CUT, and PASTE functions. (Keypad keysSELECT) (SELECT function) (FunctionsSELECT) (Keypad keysCUT) (CUT function) (FunctionsCUT) (Keypad keysPASTE) (PASTE function) (FunctionsPASTE) (NUMBERED) Select the section of text you want to cut. (ALPHABETIC) Move the cursor to the first character in that section. Press (SELECT). Move the cursor to the character following the last character in that section.

KED highlights your selection by underlining it or displaying it in reverse video (reversing the text and background). Press (CUT).

KED deletes the text you selected and stores it in a paste buffer. If that buffer is too small to hold your selection, select and cut a smaller section of text (steps 1 and 2). After pasting that section in another location (step 3), select, cut, and paste the rest of the text. Paste your selection in another location. (ALPHABETIC) Move the cursor to the other location. Press (GOLD) and (PASTE).

KED inserts your selection at the point where the cursor is located and moves the cursor to the first character following the inserted text.

In other words: (simple) Move the cursor to the first character. (SELECT) Move the cursor to the character following the last character. (CUT) Move the cursor to the other location. (GOLD) (PASTE)

You can press (GOLD) and (PASTE) again and again to insert your selection in multiple locations. Your selection remains in the paste buffer until you press (CUT) (causing KED to store new text in that buffer) or until you enter a CLEAR PASTE command as described in (clear_sec).

For large cut and paste operations, you can use an auxiliary file for temporary storage as described in Chapters (copy_chap\VALUE) and (insert_chap\VALUE). (iasrsx) If your system is IAS or RSX--11, you can also increase the size of the paste buffer as described in Appendix (rsx_ax\value) or (ias_ax\value). (Removing and Inserting Two or More Sections of Text)

(Removingsections of text) (Insertingsections of text) (Text sections, removing and inserting) To remove two or more sections of text from different locations in your file, join them together, and insert them in another location: (NUMBERED) Select and cut the first section. (Keypad keysSELECT) (SELECT function) (FunctionsSELECT) (Keypad keysCUT) (CUT function) (FunctionsCUT) (ALPHABETIC) Move the cursor to the first character in that section. Press (SELECT). Move the cursor to the character following the last character in that section. Press (CUT).

KED deletes that section and stores it in the paste buffer. Select (do not cut) the next section by repeating steps a, b, and c. Press (APPEND). (Keypad keysAPPEND) (APPEND function) (FunctionsAPPEND)

KED deletes that section and adds it to the end of the first section in the paste buffer. Continue selecting and appending sections of text (by repeating steps 2 and 3) as many times as necessary.

KED deletes each section you select and adds it to the end of the contents of the paste buffer. Move the cursor to the point in your text where you want to insert the appended sections. Press (GOLD) and (PASTE). (Keypad keysPASTE) (PASTE function) (FunctionsPASTE)

KED inserts the entire contents of the paste buffer (the appended sections) in your file.

In other words: (simple) Move the cursor to the first character. (SELECT) Move the cursor to the character following the last character. (CUT) Select (do not cut) the next section. (APPEND) Repeat the selecting and appending operations. Move the cursor to the point of insertion. (GOLD) (PASTE) (Replacing One Section of Text with Another\REP_SEC)

(Replacing section of text) (Section of textreplacing) (Text sectionreplacing) To replace one section of text with another: (NUMBERED) Select the replacement text and store it in the paste buffer. (Keypad keysSELECT) (SELECT function) (FunctionsSELECT) (Keypad keysCUT) (CUT function) (FunctionsCUT) (ALPHABETIC) Move the cursor to the first character in the replacement text. Press (SELECT). Move the cursor to the character following the last character in the replacement text. Press (CUT).

KED stores the replacement text in the paste buffer. Select the text you want to delete. (Keypad keysSELECT) (SELECT function) (FunctionsSELECT) (ALPHABETIC) Move the cursor to the first character in the text you want to delete. Press (SELECT). Move the cursor to the character following the last character in the text you want to delete. Press (GOLD) and (REPLACE). (Keypad keysREPLACE) (REPLACE function) (FunctionsREPLACE)

KED deletes the selected text and replaces it with the contents of the paste buffer, moving the cursor to the first character following the replacement text.

In other words: (simple) Move the cursor to the first character in the replacement text. (SELECT) Move the cursor to the character following the last character in that text. (CUT) Move the cursor to the first character in the text to be deleted. (SELECT) Move the cursor to the character following the last character in that text. (GOLD) (REPLACE)

If you use the FIND function to select the text to be deleted, KED stores that text in its word buffer. You can recover it by pressing (GOLD) and (Keypad keysUNDELWORD) (UNDELWORD function) (FunctionsUNDELWORD) (UNDELWORD).

If you use the SELECT function to select the text to be deleted, you cannot recover that text unless you use a backup copy of your input file. (Substituting a Character String for Multiple Occurrences of Another String\SUB_SEC)

(Substituting character string for other strings) (Character string, substituting for other strings) (StringSee Character string) To substitute a character string for multiple occurrences of another character string: (NUMBERED) Select or type the replacement string and store it in the paste buffer.

(Keypad keysSELECT) (SELECT function) (FunctionsSELECT) (Keypad keysCUT) (CUT function) (FunctionsCUT) To select the replacement string: (ALPHABETIC) Move the cursor to the first character in the string. Press (SELECT). Move the cursor to the character following the last character in that string. Press (CUT).

KED stores the selected string in the paste buffer.

To type a new replacement string: (ALPHABETIC) Press (SELECT). Type the new character string. Press (CUT).

KED stores the new string in the paste buffer. Specify the string you want to delete. (Keypad keysFIND) (FIND function) (FunctionsFIND) (ALPHABETIC) Press (GOLD) and (FIND). Type the character string you want to delete. Press (ADVANCE) or (BACKUP).

KED moves the cursor forward or backward to the first character of the string you want to delete. Perform the substitutions. (ALPHABETIC) Press (GOLD) and (SUBSTITUTE). (Keypad keysSUBSTITUTE) (SUBSTITUTE function) (FunctionsSUBSTITUTE)

KED substitutes the replacement string for the string to be deleted, searches for the next occurrence of the string to be deleted, and moves the cursor to the first character of that string. Repeat step a as many times as necessary.

You can use the GOLD number function described in (REPEAT_SEC) to repeat that step a certain number of times.

In other words: (simple) Select the replacement string or type a selected replacement string. (CUT) Use the FIND function to select the string to be deleted and to move the cursor. (GOLD) (SUBSTITUTE) (GOLD) (SUBSTITUTE) (GOLD) (SUBSTITUTE)

To use the SUBSTITUTE function for deleting multiple occurrences of a character string: (numbered) Empty the paste buffer as described in (CLEAR_SEC). Specify the string you want to delete, using the FIND function. Press (GOLD) and (SUBSTITUTE) as many times as necessary.

In other words: (simple) ((GOLD) (COMMAND)) (CLEAR PASTE (ENTER)) Use the FIND function to select the string to be deleted and to move the cursor. (GOLD) (SUBSTITUTE) (GOLD) (SUBSTITUTE) (GOLD) (SUBSTITUTE) (Forcing the Case of Alphabetic Characters to Lower or Upper \forcecase_sec)

(Case of alphabetic charactersforcing) (Charactersalphabeticforcing uppercase to lowercase) (Charactersalphabeticforcing lowercase to uppercase) (Lowercase alphabetic characters, forcing to uppercase) (Uppercase alphabetic characters, forcing to lowercase) (GOLD/L) (GOLD/U) You can force the case for alphabetic characters to be lower or upper, using the (GOLD/L) and (GOLD/U) keyboard keys.

Pressing (GOLD/L) forces to lowercase the character on which the cursor is resting or all characters within an active select range.

Pressing (GOLD/U) forces to uppercase the character on which the cursor is resting or all characters within an active select range. (Changing the Case of Alphabetic Characters\changecase_SEC)

(Changingcase of alphabetic characters) (Changinguppercase alphabetic characters to lowercase) (Changinglowercase alphabetic characters to uppercase) (Case of alphabetic characterschanging) (Alphabetic characterschanging uppercase to lowercase) (Alphabetic characterschanging lowercase to uppercase) (Charactersalphabeticchanging uppercase to lowercase) (Charactersalphabeticchanging lowercase to uppercase) (Lowercase alphabetic characters, changing to uppercase) (Uppercase alphabetic characters, changing to lowercase) You can change the case of alphabetic characters from uppercase to lowercase or from lowercase to uppercase, using the (GOLD) and (CHNGCASE) keys. (GOLD L function) (FunctionsGOLD L) (GOLD U function) (FunctionsGOLD U) (Changing a Character) (Keypad keysCHNGCASE) (CHNGCASE function) (FunctionsCHNGCASE) (NUMBERED) Move the cursor to the alphabetic character you want to change. Press (GOLD) and (CHNGCASE).

KED deletes the character you selected and replaces it with the same character in the other (upper or lower) case. (Changing a Character String) (Keypad keysSELECT) (SELECT function) (FunctionsSELECT) (Keypad keysCHNGCASE) (CHNGCASE function) (FunctionsCHNGCASE) (NUMBERED) Move the cursor to the first character in the string you want to change. Press (SELECT). Move the cursor to the last character in that string.

The character string you select can contain numeric and other nonalphabetic characters, but they will not be affected. Press (GOLD) and (CHNGCASE).

KED deletes the alphabetic characters you selected and replaces them with the same characters in the other (upper or lower) case.

In other words: (simple) Move the cursor to the first character in the string to be changed. (SELECT) Move the cursor to the last character in that string. (GOLD) (CHNGCASE) (Using the FIND Function with Selection Operation)

You can also use the FIND function in changing the case of an alphabetic (Keypad keysFIND) (FIND function) (FunctionsFIND) character or character string.

To change the case of a character or an entire character string: (numbered) Enable the selection operation in the FIND function. (alphabetic) Press (GOLD) and (COMMAND). Type: (SET SEARCH SELECT command) (CommandsSET SEARCH SELECT) (SET [SEARCH] SELECT) Press (ENTER). Press (GOLD) and (FIND). Type the character or character string. Press (ADVANCE) or (BACKUP). Press (GOLD) and (CHNGCASE).

KED changes the case of the character or characters you selected with the FIND function.

In other words: (simple) ((GOLD) (COMMAND)) (SET SELECT (ENTER)) Use the FIND function to find the character string to be changed. Move the cursor to the last character in that part. (GOLD) (CHNGCASE)

To disable the selection operation in the FIND function: (simple) (SET SEARCH NOSELECT command) (CommandsSET SEARCH NOSELECT) ((GOLD) (COMMAND)) (SET NOSELECT (ENTER)) (Repeating Editing Operations\REPEAT_SEC)

(Repeatingediting operations) (Editing operationsrepeating) You can repeat editing operations in three ways: (unnumbered) If your terminal has the autorepeat feature, continue pressing (hold down) the keypad or keyboard key that will give you the operation you want. Create and use a KED macro (a sequence of functions and commands) as described in (macro_chap). Use the GOLD number function as described below.

You can use the GOLD number function in the following procedures for all functions except delete, CTRL/U, or SPECINS. (Number function) (Functionsnumber) (GOLD number function) (FunctionsGOLD number) (When the Operation Must Be Specified After the GOLD Number Function:) (NUMBERED) Press (GOLD). Use the numeric keys on your keyboard to type the number of times you want the operation to be performed. The maximum number is 32767.

KED displays its (Repeat:) prompt and the number you typed. Press one or more of the keypad or keyboard keys that will perform the operation.

KED performs the operation the number of times you specified.

For example, to advance the cursor three sections: (simple) ((ADVANCE)) (GOLD) (3 (SECTION))

You can cancel a repeat operation while KED is performing it by pressing (CTRL/C). If KED is displaying its (Repeat:) prompt, press (ENTER). (When Part of the Operation Must Be Specified Before the GOLD Number Function:)

You can insert a character string a certain number of times by combining the SELECT, CUT, and PASTE functions ((insertnew_sec)) with the GOLD number function. For example, if you want to insert the string ([]) 20 times: (Keypad keysSELECT) (SELECT function) (FunctionsSELECT) (Keypad keysCUT) (CUT function) (FunctionsCUT) (Keypad keysPASTE) (PASTE function) (FunctionsPASTE) (numbered) Press (SELECT). Type: ([]) Press (CUT). Press (GOLD). Type: (20) Press (GOLD) and (PASTE).

KED displays: [][][][][][][][][][][][][][][][][][][][]

In other words: (simple) ((SELECT)) ([]) ((CUT) (GOLD)) (20 (GOLD) (PASTE)) (Other Useful Examples:)

The procedures described above are also useful when you want to insert consecutive single characters. For example, if you want to insert a line of 50 asterisks as a border for a comment block in a program, the following procedure is the quickest way to produce that line: (NUMBERED) Press (GOLD). Type the number 50 on your keyboard. Press the (Shift) and (*) keys on your keyboard.

KED displays: **************************************************

In other words: (simple) ((GOLD)) (50 (Shift/*)) (What Next?)

If you did not complete the work session example in (session_ax) to verify your installation, you should complete that example now, because it will help you review and summarize many of the operations you have learned so far.

After you complete the work session example, you should know enough about KED to make full use of the chapters remaining in this document. (unnumbered) (macro_chap) tells you how to use KED macros and command files to perform many editing operations in a more efficient manner. Chapters (copy_chap\value) and (insert_chap\value) tell you how to be more efficient by using auxiliary files to move text from one file to another. (anticipate_chap) tells you how to begin your work session so you can recover all or most of the work you performed in the event of a system crash or similar malfunction. (prog_chap) gives you three very useful operations for program development.