• SIGNA MR355 / SIGNA MR360
  • Service Manual
  • 5856356-3EN Revision 5.0
  • Basic Service Documentation. Copyright General Electric Company.
  • Object ID: 00000018WIA30445F20GYZ
  • Topic ID: id_13106123 Version: 1.5
  • Date: Jul 5, 2019 10:46:04 PM

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.

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

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.

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.

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.

Table 1. Basic vi Editor Commands
Command TypesCommandDescription
Invoking vivi filenameOpens a window and displays about 30 lines of the file
Input Mode commandslInserts text immediately in front of the cursor location
aAppends text immediately following the cursor location
oAppends text below the current line
OInserts text above the current line
Exit/Input Mode Esc Places vi in command mode
Cursor positioninghMoves cursor one character to the left
iMoves cursor one character to the right
jMoves cursor down one line
kMoves cursor up one line
HMoves cursor to top of screen
MMoves cursor to the middle of the screen
LMoves cursor to the bottom of the screen
Saving and exiting vi:wSaves the changes to the current file
:wqSaves the changes to the current file and quits vi
:q!Quits vi without saving changes
Modifying textxDeletes the current character
ddDeletes the current line
#ddDeletes the current line and # lines following it
rReplaces the current character with the character typed next
uUndoes the most recent delete or change
UUndoes all changes on the current line
Search for Text String/text stringSearches for the specified text throughout the file

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.

Table 2. Vi Commands Quick Reference
Start vi editor vi filename
Enter Input modei, a o, O
Exit Input mode Esc
Cursor position commandsh, j, k, l, and Enter
Save and quit the editor:w, :q!, :wq
Delete or replace textx, dd, r u

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.