home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / v / vdtj122b.zip / DEMO9.VDM < prev    next >
Text File  |  1992-11-30  |  6KB  |  200 lines

  1. RI(9)/VEDIT and VEDIT PLUS - Multiple File Editing/
  2. M(H)
  3.  
  4. YT\
  5. You can easily edit two, three or more files at the same time.  Each file can
  6. be of any size and can optionally be displayed in its own window.  You can
  7. also display different parts of one file in separate windows.
  8.  
  9. Although you can open files for editing with the {FILE} sub-menu and split the
  10. screen into windows with the {WINDOW} sub-menu, several built-in keystroke
  11. macros simplify these operations.
  12.  
  13. <Alt-N>    Opens a new file for editing in the current buffer and window. You are
  14.     prompted whether any existing file should be saved or abandoned.
  15.  
  16. <Alt-O>    Opens a file for editing in a new buffer, but in the current window.
  17.  
  18. <Alt-Y> Opens a file for editing in a new buffer in a new horizontal window.
  19.  
  20. <Alt-T> Toggles the current window through the files being edited.
  21.  
  22. \
  23.  
  24. M(K)
  25. 7XS(100)        !Need 7 line window
  26. M(W)            !Create instruction window; set attributes
  27. EZY
  28. EB demo.txt
  29.  
  30. EE(1)
  31. B#K
  32. I/Many times you simply want to edit a new file after saving the current file,
  33. i.e. you don't need to simultaneously edit the two files.  You can edit a new
  34. file by pressing <Alt-N> (shortcut for {FILE, Open}-S).  For example, you are
  35. currently editing the file DEMO.TXT.  To save this file and begin editing
  36. DEMO2.TXT, press <Alt-N> and at the filename prompt enter "DEMO2.TXT".  If you
  37. modified DEMO.TXT, you will be prompted whether to save or abandon this file.
  38.         --- Press <Esc> to continue ---/
  39.  
  40. B -V            !Display instruction text
  41. EE(@)            !Switch to main edit buffer
  42. V
  43.  
  44. EE(1)
  45. B#K
  46. I/If you are not exactly sure of the filename you can use VEDIT's "point and
  47. shoot" file selection.  When prompted for a filename simply press <Enter> to
  48. see all files in the current directory or enter a "filter" such as "*.txt" to
  49. select only the files ending in ".TXT".
  50.      Experiment with the "point and shoot" by pressing <Alt-N> again to select
  51. a new file to edit.  Note the "help" line on the bottom of the screen during
  52. point and shoot.        --- Press <Esc> to continue ---/
  53.  
  54. B -V            !Display instruction text
  55. EE(@)            !Switch to main edit buffer
  56. V
  57.  
  58. EZY
  59. EB demo.txt
  60. EE(1)
  61. B#K
  62. I/You are again editing the single file "DEMO.TXT".  To open an additional file
  63. for editing press <Alt-O>.  At the prompt enter the name of the file to edit.
  64. For example, enter "DEMO2.TXT" and press <Enter>.
  65.  
  66. You are now editing the file DEMO2.TXT.  The letter "A" in the top-left of the
  67. status line indicates that this file is being edited in buffer "A".
  68.         --- Press <Esc> to continue ---/
  69.  
  70. B -V
  71. EE(@)
  72. V
  73.  
  74. .bnXS(97)        !Save edit buffer #
  75. EE(1)
  76. B#K
  77. I/Press <Alt-T> to toggle between the files being simultaneously edited.
  78. Notice how the name of the active file is displayed on the status line.
  79.  
  80. (This demo uses buffer "1" to display the instructions; therefore <Alt-T>
  81. also toggles to this text.  Normally, when you aren't running this demo,
  82. just the current files being edited would be displayed on the screen.)
  83.         --- Press <Esc> to continue ---/
  84.  
  85. B -V
  86. EE#97
  87. V
  88.  
  89. .bnXS(97)        !Save edit buffer #
  90. EE(1)
  91. B#K
  92. I/It is usually easiest to switch between files by repeatedly pressing <Alt-T>.
  93. However, if you know the name of its corresponding buffer, you can switch
  94. directly to a file by pressing <F4> and its buffer name.  Press <F4> and "A"
  95. to switch to buffer A; press <F4> and <Enter> to switch to the main buffer.
  96.  
  97. Feel free to experiment.  An additional (third) file you can simultaneously
  98. edit is "DEMO8.TXT".        --- Press <Esc> to continue ---/
  99.  
  100. B -V
  101. EE#97
  102. V
  103.  
  104. EE(C) EQY        !Empty buffers C, B and A
  105. EE(B) EQY
  106. EE(A) EQY
  107. EE(@) EZY        !Empty main buffer
  108. EB demo.txt        !Load demo file again
  109. EE(1)
  110. B#K
  111. I/You are again editing the single file "DEMO.TXT".  To simultaneously edit a
  112. second file, but also display it in its own window press <Alt-Y>.  At the
  113. prompt enter the name of the file to edit.  For example, enter "DEMO2.TXT".
  114.  
  115. Notice how the screen has been split in half and that the status line
  116. indicates you are editing "DEMO2.TXT".
  117.         --- Press <Esc> to continue ---/
  118.  
  119. B -V
  120. EE(@)
  121. V
  122.  
  123. .bnXS(97)        !Save edit buffer #
  124. EE(1)
  125. B#K
  126. I/Press <Alt-T> to toggle the current window between the files being edited.
  127. Press <Ctrl-T> to toggle between the windows. With just these two keys you can
  128. easily display any file in any window or windows. <Alt-T> is a hot-key for
  129. {FILE, Buffer toggle}. <Ctrl-T> is a hot-key for {WINDOW, Window toggle}.
  130.  
  131. Feel free to experiment. The mouse can also switch between windows.
  132.            --- Press <Esc> to continue ---/
  133. B -V
  134. EE#97
  135. V
  136.  
  137. EE(1)
  138. B#K
  139. I/With a mouse, you can easily switch between windows by moving the mouse
  140. anywhere within the desired window and clicking the left button.
  141.  
  142. When you click the left button in a non-active window, VEDIT switches to
  143. that window.  When you click the left button in the active window, VEDIT
  144. moves the editing cursor to the position of the mouse cursor.
  145.         --- Press <Esc> to continue ---/
  146. B -V
  147. EE(@)
  148. V
  149.  
  150. EE(1)
  151. B#K
  152. I/To help remind you which files are being edited, enter the {HELP} sub-menu
  153. (<Alt-H>) and select "Edit Buffers".  This displays the name of each file with
  154. its associated window and "buffer" name. (Buffers 1 & Z are used by the demo.)
  155.  
  156. You can use <Alt-T>, <F4> or {FILE, Buffer switch} to switch between files.
  157. <F4> is a "hot key" (keystroke macro) for the function {FILE, Buffer switch}.
  158.         --- Press <Esc> to continue ---/
  159.  
  160. B -V
  161. EE(@)
  162. V
  163.  
  164. 8XS(100)        !Need 8 line window
  165. M(W)            !Create instruction window; set attributes
  166. EE(A) EQY
  167. EE(B) EQY
  168. EE(C) EQY
  169. EE(@) EZY
  170. ER demo.txt 0A        !Load demo file again
  171. EE(1)
  172. B#K
  173. I/You are again editing the single file "DEMO.TXT".  To display the file in two
  174. vertical windows press <Alt-V>.  Press <PgDn> a few times.  Notice how only
  175. the current window scrolled down.  You can view different parts of a file at
  176. the same time.
  177.  
  178. Press <PgUp> again until both windows show the same text.  Make some edit
  179. changes.  Notice how both windows update at the same time.
  180.         --- Press <Esc> to continue ---/
  181.  
  182. B -V
  183. EE(@)
  184. V
  185.  
  186. EE(1)
  187. B#K
  188. I/Press <PgDn> again a few times.  Now press <Ctrl-T> to toggle between the
  189. windows on the screen.  This lets you switch to the other window on the same
  190. file.  You can, of course, edit in this window too.
  191.  
  192. You can use <Ctrl-T>, <Alt-F4>, the {WINDOW} sub-menu or the mouse to switch
  193. windows.  Experiment.
  194.  
  195.         --- Press <Esc> to return to the Main Menu ---/
  196.  
  197. B -V
  198. EE(@)
  199. V
  200.