HP Data Center Connection Manager Software Products manual Vi Editor, Command Mode

Models: Data Center Connection Manager Software Products

1 72
Download 72 pages 2.85 Kb
Page 53
Image 53

Manually Editing DCM Controller Files

vi Editor

vi Editor

To edit or view files on the DCM Controller, use the vi editor, a commonly used Linux text editor.

The vi editor has three modes:

Command

Insert

Replace

Command Mode

When you access vi and open a file, you are typically in the command mode: you can enter any of the commands outlined in Table B-2. Unless preceded by a colon (:) these commands are keystrokes; you do not have to press [Enter] for them to take effect.

Table B-2. vi Editor Commands

Action

Command

 

 

Enter insert mode, which allows you to add or delete text in the file:

 

Characters are entered into the file after the cursor.

a

Characters are entered into the file before the cursor.

i

Enter replace mode, which allows you to write new text over

R

existing text, beginning at the cursor.

 

Delete a character

x

Delete N characters

Nx

Delete a word

dw

Delete N words

dNw

Delete a line

dd

Delete N lines

Ndd

Copy current line

yy

Copy N lines, beginning with the current

Nyy

Paste copied lines back into the file

p

Undo last change in file; enter command again to redo change

u

B-5

Page 53
Image 53
HP Data Center Connection Manager Software Products manual Vi Editor, Command Mode, Table B-2. vi Editor Commands