AT&T G3 manual Split a line

Models: G3

1 287
Download 287 pages 31.55 Kb
Page 266
Image 266

Basic vi

vi Editor

Function

Command

Operation

 

 

 

Edit Text

x

Erase one character

 

 

 

 

r

Replace one character

 

 

 

 

R

Replace multiple

 

 

characters

 

 

 

 

D

Delete to the end of the line

 

 

 

 

dw

Delete one word

 

 

 

 

cw

Change one word

 

 

 

 

dd

Delete one line

 

 

 

 

dd then p

Delete/put to move text

 

 

 

 

yy then p

Yank/put to copy text

 

 

 

 

r Enter

Split a line

 

 

 

 

J

Join 2 lines of text

 

 

 

 

nJ

Join more than 2 lines of

 

 

text

 

 

 

File

:w Enter

Write to the file named on

Manipulation

 

the command line

 

 

 

 

:w newfile Enter

Write to another, new file

 

 

 

 

:w>> oldfile Enter

Append to another file

 

 

 

 

:q! Enter

Quit vi without writing file to

 

 

disk

 

 

 

 

: wq! Enter

Save and exit the file

 

 

 

 

:e! Enter

Re-edit another file

 

 

 

 

:e newfile Enter

Edit another file

 

 

 

 

:r file Enter

Reads the contents of the

 

 

file into buffer after the

 

 

current line

 

 

 

C-4Issue 2 April 1996

Page 266
Image 266
AT&T G3 manual Split a line