CLI Usage
7450 ESS OS Basic System Configuration Guide Page 49
Table 16: Searching for Text or Characters
vi Command Description
, Repeat the last f, F, t or T command in the reverse direction.
/ Search the file downwards for the string specified after the /.
; Repeat the last f, F, t or T command.
? Search the file upwards for the string specified after the
?.
F Search the current line backwards for the character specified after the 'F'
command. If found, move the cursor to the position.
N Repeat the last search given by
/ or ?, except in the reverse direction.
T Search the current line backwards for the character specified after the
T
command, and move to the column after the if it's found.
f Search the current line for the character specified after the
f command. If
found, move the cursor to the position.
n Repeat last search given by
/ or ?.
t Search the current line for the character specified after the
t command,
and move to the column before the character if it's found.
Table 17: Manipulating Character/Line Formatting
vi Command 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.
Table 18: Saving and Quitting
vi Command Description
ZZ Exit the editor, saving if any changes were made.