The easiest way to close a file, without exiting vEdit, is to double click the window’s icon; this is the same as selecting WINDOW > Close (Ctrl-F4). If this is the only window displaying the file, which is the typical case, it closes the file and the corresponding buffer.

If a file is displayed in two or more windows, WINDOW > Close does not close the file until you close its last window.

Alternatively, you can select FILE > Close ( Ctrl-W ) to close the current buffer, saving or abandoning any file in it. It also closes all windows attached to the buffer. In the typical case where each file is displayed in only one window, FILE > Close and WINDOW > Close are identical.

vEdit always keeps one buffer and window open. If you attempt to close the last window, it only closes the file. The last buffer and corresponding window will remain open, but will be empty

Use FILE > Exit when you are ready to exit vEdit. It will let you selectively save or abandon each modified file, or save/abandon all files.

How to Close the Current File

  1. Select WINDOW > Close ( Ctrl-F4 ) or double-click the window’s icon. Alternatively, select FILE > Close ( Ctrl-W ).
  2. If the current file has been modified and not yet saved to disk you are prompted with:
    • Save current file? [Yes] [No-Abandon]
  3. If you select [Yes], vEdit will save the current file with all modifications. If you select [No], vEdit will abandon changes that have been made since the last time the file was saved. In either case, it also closes the current window and buffer.
  4. If you select [Yes] to save the text, but no file is open, you will be prompted for the name under which to save the file:
    • No filename specified! Enter “Save As” filename
  5. Enter the desired name for the file.

You can also close a file by double-clicking the mouse on the window’s left-side icon. This is equivalent to WINDOW > Close.

WINDOW > Remove lets you close any window without first switching to it. Its primary purpose is to close (remove) special “Command mode” windows that were created in the vEdit macro language or with WINDOW > Split.

Related Resources