home *** CD-ROM | disk | FTP | other *** search
- RI(9)/VEDIT and VEDIT PLUS - Multiple File Editing/
- M(H) !Display header
-
- YT\
- With VEDIT and VEDIT PLUS you can easily edit two, three or more files at the
- same time. Each file can be of any size and can optionally be displayed in its
- own window. You can also display different parts of one file in separate
- windows.
-
- Although you can select additional files to edit using the {FILE} sub-menu
- and split the screen into windows with the {WINDOW} sub-menu, several
- built-in keystroke macros simplify these processes.
-
- <ALT-O> Prompts you for the next file to edit and automatically selects an
- unused edit buffer in which to simultaneously edit this file.
-
- <ALT-Y> Same as <ALT-O> except it also splits the current window into two
- horizontal windows.
-
- <ALT-T> Toggles between the files/windows created with <ALT-O> or <ALT-Y>.
-
- \
-
- M(K)
-
- YWI YWB(1) 7 !Init screen, setup 2 windows...
- Q26YEA !Set editing attribute
- YWS(1) Q27YEA !Set attribute in lower window "1"
-
- EZY
- EB demo.txt
-
- EE(1)
- B#K
- I/Many times you simply want to edit a new file after saving the current file,
- i.e. you don't need to simultaneously edit the two files. You can edit a new
- file by pressing <ALT-N>. For example, you are currently editing the file
- "DEMO.TXT". To save this file and begin editing the file DEMO2.TXT press
- <ALT-N> and at the filename prompt enter "DEMO2.TXT". If you modified
- DEMO.TXT, you will be prompted whether to save or abandon this file.
- --- Press <ESC> to continue ---/
-
- B -V !Display instruction text
- EE(@) !Switch to main edit buffer
- V
-
- EE(1)
- B#K
- I/If you are not exactly sure of the filename you can use VEDIT's "point and
- shoot" file selection. When prompted for a filename simply press <Enter> to
- see all files in the current directory or enter a "filter" such as "*.txt" to
- select only the files ending in ".TXT".
- Experiment with the "point and shoot" by pressing <ALT-N> again to select
- a new file to edit. Note the "help" line on the bottom of the screen during
- point and shoot. --- Press <ESC> to continue ---/
-
- B -V !Display instruction text
- EE(@) !Switch to main edit buffer
- V
-
- EZY
- EB demo.txt
- EE(1)
- B#K
- I/You are again editing the single file "DEMO.TXT". To simultaneously edit
- a second file press <ALT-O>. At the prompt enter the name of the file to
- edit. For example, enter "DEMO2.TXT" and press <Enter>.
-
- You are now editing the file DEMO2.TXT. The letter "A" in the top-left of the
- status line indicates that this file is being edited in buffer "A".
- --- Press <ESC> to continue ---/
-
- B -V
- EE(@)
- V
-
- .bnXS(97) !Save edit buffer #
- EE(1)
- B#K
- I/Press <ALT-T> to toggle between the files being simultaneously edited.
- Notice how the name of the active file is displayed on the status line.
-
- (This demo uses buffer "1" to display the instructions; therefore <ALT-T>
- also toggles to this text. Normally, when you aren't running this demo,
- just the current file being edited would be displayed on the screen.)
- --- Press <ESC> to continue ---/
-
- B -V
- EE#97
- V
-
- .bnXS(97) !Save edit buffer #
- EE(1)
- B#K
- I/It is usually easiest to switch between files by repeatedly pressing <ALT-T>.
- However, if you know the name of its corresponding buffer, you can switch
- directly to a file by pressing <F4> and its buffer name. Press <F4> and "A"
- to switch to buffer A; press <F4> and <Enter> to switch to the main buffer.
-
- Feel free to experiment. An additional (third) file you can simultaneously
- edit is "DEMO8.TXT". --- Press <ESC> to continue ---/
-
- B -V
- EE#97
- V
-
- EE(C) EQY !Empty buffers C, B and A
- EE(B) EQY
- EE(A) EQY
- EE(@) EZY !Empty main buffer
- EB demo.txt !Load demo file again
- EE(1)
- B#K
- I/You are again editing the single file "DEMO.TXT". To simultaneously edit a
- second file, but also display it in its own window press <ALT-Y>. At the
- prompt enter the name of the file to edit. For example, enter "DEMO2.TXT".
-
- Notice how the screen has been split in half and that the status line
- indicates you are editing "DEMO2.TXT".
- --- Press <ESC> to continue ---/
-
- B -V
- EE(@)
- V
-
- .bnXS(97) !Save edit buffer #
- EE(1)
- B#K
- I/Press <ALT-T> to again toggle between the files being simultaneously edited.
- This time, however, you are also toggled from one window to another. Notice
- how the "WINDOW" message in the active window is highlighted. Normally, the
- cursor will be blinking in the active window.
-
- Feel free to experiment.
- --- Press <ESC> to continue ---/
- B -V
- EE#97
- V
-
- EE(1)
- B#K
- I/With a mouse, you can easily switch between windows by moving the mouse
- anywhere within the desired window and clicking the left button.
-
- When you click the left button in a non-active window, VEDIT switches to
- that window. When you click the left button in the active window, VEDIT
- moves the editing cursor to the position of the mouse cursor.
- --- Press <ESC> to continue ---/
- B -V
- EE(@)
- V
-
-
-
- EE(1)
- B#K
- I/To help remind you which files are being edited, enter the {HELP} sub-menu
- (<ALT-H>) and select "Edit Buffers". This displays the name of each file with
- its associated window and "buffer" name. (Buffers 1 & Z are used by the demo.)
-
- You can use <ALT-T>, <F4> or {FILE, Buffer Switch} to switch between files.
- <F4> is a "hot key" (keystroke macro) for the function {FILE, Buffer Switch}.
- --- Press <ESC> to continue ---/
-
- B -V
- EE(@)
- V
-
- YWI YWB(1) 8 !Init screen, setup 2 windows...
- Q26YEA !Set editing attribute
- YWS(1) Q27YEA !Set attribute in lower window "1"
- EE(A) EQY
- EE(B) EQY
- EE(C) EQY
-
- B#K
- ER demo.txt 0A !Load demo file again
- EE(1)
- B#K
- I/You are again editing the single file "DEMO.TXT". To display the file in two
- vertical windows press <ALT-V>. Press <PgDn> a few times. Notice how only
- the current window scrolled down. You can view different parts of a file at
- the same time.
-
- Press <PgUp> again until both windows show the same text. Make some edit
- changes. Notice how both windows update at the same time.
- --- Press <ESC> to continue ---/
-
- B -V
- EE(@)
- V
-
- EE(1)
- B#K
- I/Press <PgDn> again a few times. Now press <ALT-F4>. At the prompt press
- "0". Notice how this has switched you to the other window on the same file.
- You can, of course, edit in this window too.
-
- Press <ALT-F4> and then just <Enter> to switch back to the default "@" window.
- <ALT-F4> is just a "hot key" (keystroke macro) for {WINDOW, Switch}. You can
- press <ALT-F4> or use the {WINDOW} sub-menu to switch windows.
- --- Press <ESC> to return to the Main Menu ---/
-
- B -V
- EE(@)
- V
-