Using SoftBench Editors

Editing with SoftBench vi Editor

behaviors:

Table 4-1

If the vi autowriteSoftBench vi Editor's behavior
option

 

 

 

is set

automatically saves the file before loading the

 

new file.

 

 

is not set

you must manually save the file before loading

 

the new file.

 

 

To set the autowrite option, type ":set autowrite" from within

SoftBench vi Editor or add it to your $HOME/.exrc file.

3.SoftBench vi Editor loads the new file and you can modify the file's contents as desired.

4.If you want to "switch" back to the previous file, you can view the Editor Index to see a list of files that you have edited. Choose "File: Editor Index" to display this index. Double–click the mouse on the name of the file which you want to edit, and SoftBench vi Editor loads it into its editing area. (You can also use vi's ":edit #" command to edit the previously edited file.)

Reusing the Edit Window

SoftBench vi Editor's "Reuse Window" toggle button allows you to control whether or not SoftBench vi Editor generates a new window for an edit request:

Table 4-2

Status of "Reuse Window"SoftBench vi Editor Behavior
Toggle Button

 

 

 

Set on at least one SoftBench vi

SoftBench vi Editor reuses a

Editor window

window whose toggle button is

 

selected for subsequent edit

 

requests

 

 

Not set on any window

SoftBench vi Editor generates a

 

new window.

 

 

128

Chapter 4