AT&T G3 Telephone User Manual


 
C-4 Issue 2 April 1996
Basic vi
vi Editor
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
Manipulation
:w
Enter Write to the file named on
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
Function Command Operation