Using The Vi Commands - Alcatel-Lucent 7450 ESS-12 Configuration Manual

Os basic system 7450 ess series ethernet service switch
Table of Contents

Advertisement

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
7450 ESS OS Basic System Configuration Guide
commands, only a few are usually sufficient to
vi
commands.
vi
Cutting and Pasting/Deleting Text in vi on page 43
Inserting New Text on page 44
Moving the Cursor Within the File on page 48
Moving the Cursor Around the Screen on page 44
Replacing Text on page 44
Searching for Text or Characters on page 51
Manipulating Character/Line Formatting on page 51
Saving and Quitting on page 51
Miscellaneous on page 52
"
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.
d
Deletes text. "
Whatever is deleted is placed into the buffer specified with the
no buffer is specified, then the general buffer is used.
D
Delete to the end of the line from the current cursor position.
p
Paste the specified buffer after the current cursor position or line. If no buffer
is specified (with the
P
Paste the specified buffer before the current cursor position or line. If no buffer
is specified (with the
x
Delete character under the cursor. A count tells how many characters to delete.
The characters will be deleted after the cursor.
X
Delete the character before the cursor.
y
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.
edit sessions, move around in a file, enter new
vi
Description
" deletes the current line. A count deletes that many lines.
dd
command.) then 'p' uses the general buffer.
"
command.) then
"
users. The following
vi
"
uses the general buffer.
P
yanks the current line. Entering a
yy
CLI Usage
"
command. If
"
Page 45

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

7450 ess-67450 ess-7

Table of Contents