Novell SuSE Linux Professional 9.2 Upgrade [Strong Encryption 128 Bit] 00662644457260 Benutzerhandbuch

Produktcode
00662644457260
Seite von 324
21
W
or
king
with
the
Shell
Table 21.2: Simple Commands of the vi Editor




ESC
Changes to last line mode.
i
Changes to insert mode (characters appear at the current
cursor position).
a
Changes to insert mode (characters appear after the
current cursor position).
A
Changes to insert mode (characters are added at the end
of the line).
R
Changes to command mode (overwrites the old text).
r
Changes to insert mode and overwrites each character.
s
Changes to insert mode (the character where the cursor
is positioned is replaced by the next entry you make).
C
Changes to insert mode (the rest of the line is replaced
by the new text).
o
Changes to insert mode (a new line is inserted after the
current one).
O
Changes to insert mode (a new line is inserted before the
current one).
x
Deletes the current character.
dd
Deletes the current line.
dw
Deletes up to the end of the current word.
cw
Changes to insert mode (the rest of the current word is
overwritten by the next entries you make).
u
Undoes the last command.
J
Joins the following line with the current one.
.
Repeats the last command.
:
Changes to last line mode.
The most important commands in command mode are shown in Table 21.2. Each
command can be preceded by a number specifying on how many objects the fol-
lowing command should operate. Delete three words at once by entering
3dw
.
279
SUSE LINUX