File Editors

There are three file editors available on the system; gedit, vi (unix editor- pronounced "vee-eye"), and Config File Manager. The jot and vi editors can be used to edit any file, whereas the Config File Manager can only be used to change the contents of the MR Configuration files.

1 Gedit Editor

Gedit is a very easy-to-use text editor for viewing or editing on the system. The geditjot editor can be started two different ways:

  1. From a C-Shell, or

  2. From the Service Desktop Utilities menu

2 Starting Gedit from the Utilities Menu

  1. On the Service Desktop, select Utilities, File Editor (gedit), then Start….

  2. An empty “gedit” tty window opens. To open a file to read or edit, use the File pulldown menu to select Open. In the pop-up window, select the file or use the File Browser to locate and open the desired file. Click OK.

  3. When you're done viewing or editing the file, select the File pulldown menu to select Save, or Exit (without saving changes) as appropriate.

3 Starting Gedit from a C-Shell

  1. On the Service Desktop, select C Shell….

  2. In the C-shell window, type the directory path of the file you want to view or edit; for example: cd /test Enter.

  3. To view or edit a file, type gedit filenameEnter.

  4. When done viewing or editing the file, select File on the pulldown menu, then select Save, or Exit (without saving changes) as appropriate.

4 Vi Editor

The vi editor provides a tty window to edit or read files on the system. Invoking vi from within a C-Shell Tool displays up to 38 lines of a file. The vi editor has over 100 commands. It is difficult to use and is recommended only for experienced users. Table 1 provides an overview of the commands needed to navigate within a file and handle the major editing tasks.

The vi editor has two modes of operation: Input mode and Command mode. While in Input mode, whatever is typed at the keyboard is entered into the file at the location of the cursor. While in Command mode, you can position the cursor anywhere in the file, delete characters, lines or groups of lines, write the changes to the file, and quit the editor. To change from Input Mode to Command Mode, press Esc. The following is a listing of basic commands to begin using vi; refer to Table 1 for their full descriptions. A sample vi edit session is shown in Figure 1. Table 2 is a VI quick reference.

Figure 1. Sample vi Edit Session

note:

All vi commands are case-sensitive.

5 Configuration File Manager

The Config File Manager is used to change the contents of the MR System configuration, Gradient configuration, SAR configuration, and Coil Configuration files via a GUI (Graphical User Interface) tool. Editing of configuration files using is covered in the Configuration File Manager procedure.