GE H
EALTHCARE
D
IRECTION
5461425-8EN, R
EVISION
B
RIVO
XR118 S
ERVICE
M
ANUAL
Page 212
Section 2.0 - Software Issues
11.) Saving and Exiting
2.4.4
Recovering Work
The VI editor edits a temporary copy of your file, and after the editing is complete, or when you tell
it to save, it puts the contents of the temporary copy into the original file. If something goes wrong
while you are editing your file, the VI editor will attempt to save whatever work you had in progress,
and store it for later recovery.
The -r option stands for recovery. If you were editing the file vitalinfo, and you accidentally got
logged out, then the -r option of the vi editor should help. The command would look somewhat like
this: vi -r vitalinfo After using the -r option once, though, you MUST save what you have recovered
to the actual file... The -r option only works once per failed VI session.
Item
Description
<~ >
Switch the case of the character under the cursor.
<< >
Shift the lines up to where to the left by one shiftwidth.
<<<>
Shifts the current line to the left, and can be specified with a count.
<>>
Shift the lines up to where to the right by one shiftwidth.
<>>>
Shifts the current line to the right, and can be specified with a count.
<J>
Join the current line with the next one. A count joins that many lines.
Item
Description
<ZZ>
Exit the editor, saving if any changes were made.