CLI Usage
Basic System Configuration Guide 41
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.
Table 19: Miscellaneous
vi Command Description
^G Show the current filename and the status.
^L Clear and redraw the screen.
Table 16: Searching for Text or Characters (Continued)
vi Command Description (Continued)