Using The Vi Commands; Table 12: Inserting New Text - Alcatel-Lucent 7950 XRS Series Configuration Manual

Extensible routing system sr os basic system
Table of Contents

Advertisement

VI Editor

Using the vi Commands

Use the following commands to start and end
text, modify, move, and delete old text, as well as read from and write to files other files. Although
there are numerous
tables list
Table 11: Cutting and Pasting/Deleting Text in vi
vi Command
"
d
D
p
P
x
X
y
Y

Table 12: Inserting New Text

vi Command
A
Page 44
commands, only a few are usually sufficient to
vi
commands.
vi
Cutting and Pasting/Deleting Text in vi on page 44
Inserting New Text on page 44
Moving the Cursor Around the Screen on page 45
Replacing Text on page 45
Specify a buffer to be used any of the commands using buffers. Follow the
character with a letter or a number, which corresponds to a buffer.
Deletes text. "
dd
Whatever is deleted is placed into the buffer specified with the
no buffer is specified, then the general buffer is used.
Delete to the end of the line from the current cursor position.
Paste the specified buffer after the current cursor position or line. If no buffer
is specified (with the
Paste the specified buffer before the current cursor position or line. If no buffer
is specified (with the
Delete character under the cursor. A count tells how many characters to delete.
The characters will be deleted after the cursor.
Delete the character before the cursor.
Yank text, putting the result into a buffer.
number yanks that many lines. The buffer can be specified with the
command. If no buffer is specified, then the general buffer is used.
Yank the current line into the specified buffer. If no buffer is specified, then
the general buffer is used.
Append at the end of the current line.
I
Insert from the beginning of a line.
edit sessions, move around in a file, enter new
vi
Description
" deletes the current line. A count deletes that many lines.
command.) then 'p' uses the general buffer.
"
command.) then
"
Description
7950 SR OS Basic System Configuration Guide
users. The following
vi
"
uses the general buffer.
P
yanks the current line. Entering a
yy
"
command. If
"

Advertisement

Table of Contents
loading

Table of Contents