home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / simtel / cpmug / cpmug081.ark / EDITM.DOC < prev    next >
Encoding:
Text File  |  1985-02-10  |  3.3 KB  |  95 lines

  1. The editor EDIT.ASM published in CPMUG has been modified
  2. in three features.
  3.  
  4. 1. It allows the use of both upper and lower case in the
  5.    commands, which increases speed.
  6.  
  7. 2. A new command, the M(ove) command, is included. This command
  8.    allows to write data to disk starting any place in the
  9.    edited material. Assume you have a text which you want to
  10.    process and you want to exchange the first and the second
  11.    paragraph. Simply move the pointer to the beginning of the
  12.    second paragraph and type
  13.             nM (or nm)   ;where n is the number of lines
  14.                          ;to be writte to disk.
  15.    The moved lines are killed in memory and the gap is closed.
  16.    Then type 999W (or 999w) which transfers the first paragraph
  17.    and the remainder of text to disk.
  18.  
  19. 3. Characters deleted by RUBOUT are actually deleted
  20.    instead of being echoed as in the previous version.
  21.  
  22. Editor based on the one published in CPMUG Volume 16.
  23.  
  24. Modified by: Dr. Donat-P. Hader, Marburg, West Germany. 
  25.  
  26.         ----------
  27.  
  28. From Ward Christensen:
  29.  
  30. No new documentation was supplied with this program, so here isì
  31. the original documentation with the new commands added, andì
  32. Tony Gold's original comparison of ED and EDIT.
  33.  
  34. This is an editor similar to cp/m's ed.com, but with commandì
  35. syntax like intel's editor for those of you who are used to ì
  36. that.  the escape char is used as a delimiter in command linesì
  37. (it is echoed as a $), and a double escape is used to terminateì
  38. a command line. This editor is much faster than either theì
  39. intel editor or ed.com; unlike the intel editor, this one doesì
  40. have  the 'n' command and the 'q' command; it does not have theì
  41. 'r' command, however.  Another difference with respect to the ì
  42. intel editor is that the 'a' command only appends one line, butì
  43. you can say 9999a to append much.  The editor creates a thirdì
  44. file with type $$$ which is renamed when the edit job isì
  45. complete.  This means that if you are editing a file whichì
  46. occupies over half of the disk, you must erase any pre-existingì
  47. back-up file so that there will be room for the temporary.  If ì
  48. you don't, you will get a disk full error.  In find or ì
  49. substitute commands, the character '|' will match anyì
  50. character. If you want to change this character, look for theì
  51. sequence fe, 7c  in the code and change the 7c to the characterì
  52. you prefer.
  53.  
  54. [A.R.G SUMMARY OF COMMANDS COMPARED WITH ED.COM:
  55.  
  56. NOTE () ARE TO INDICATE A CONTROL CHARACTER, <> USED LITERALLY
  57.  
  58.       ED.COM EDITM.COM    
  59.  
  60.     B    B    Beginning of file
  61.     -B    Z    End of file
  62.     E    E    End edit
  63.     Q    Q    Quit (does not ask if OK)
  64.     C    C    Move a character
  65.     T    T    Type line from cursor
  66.     L    L    Move up/down lines
  67.     K    K    Kill lines
  68.     D    D    Delete characters
  69.     I    I    Insert text
  70.     A    A    Append from input file
  71.     W    W    Write to output
  72.     N    N    Next occurrence of string
  73.     #    65536    No "#" in EDITM
  74.     M    <>    SEE EXTENDED COMMAND BELOW  
  75.     P    NONE
  76.     H    NONE
  77.     O    NONE
  78.     R    NONE
  79.     (^Z)    (ESC)        (as terminator in searches)
  80.     (CR)    (ESC) (ESC) (to execute commands)
  81.     (CR)    NONE        (to cause LT sequence)
  82.     Char    (NUL)        (to interupt printing)
  83.  
  84.  
  85. Extended command:
  86.  
  87. 2MF.ASM(^Z)0LK(CR)  2<F.ASM(ESC)0LK>(ESC)(ESC)   
  88.  
  89. Control characters referenced above:
  90.  
  91. (CR)    :=    0DH    ^M    Return
  92. (SUB)    :=    1AH    ^Z
  93. (ESC)    :=    1BH    ^[    Escape
  94. (NUL)    :=    00H    ^@    Break
  95.