A SERVICE OF

logo

Chapter 3 205
Command Definitions C-E
DO
Table 3-6 Editing Samples for the DO Command
Edit Action
u First occurrence undoes the previous edits. The u must be in column one.
u Second occurrence undoes all edits on the current line. The u must be in
column one.
rxyz Replaces the current text with xyz starting at the position of r.
xyz Replaces the current text with xyz starting at the position of x.
ixyz Inserts xyz into the current line, starting at the position immediately before
the i.
ddd Deletes three characters, one above each d.
d xyz Deletes a single character above the d, skips one space, then replaces the
current text with xyz starting at the position of x.
ddixyz Deletes two characters, then inserts xyz in the current line in the position
before the i.
d d Deletes one character above the first d, skips two spaces and deletes a second
character above the second d. It does not delete a range of characters.
d d>xyz Deletes a single character above the first d, skips two spaces and deletes to the
end of the line beginning at the second d, and then appends xyz to the end of
line.
>xyz Appends xyz to the end of the current line.
>ddxyz Deletes the last two characters from the end of the current line and then
appends xyz to the end of the line.
>rxyz Replaces the last three characters in the current line with xyz.
>ixyz Appends xyz to the end of the line. In this case, the i command is superfluous,
because > accomplishes the same result. Using >xyz would be sufficient.
c/ab/def Changes all occurrences of ab to def, starting at c.
c"ab" Deletes all occurrences of "ab" starting at c.
cxyz Replace the current text with cxyz, starting at c. Because delimiters have
been specified (as they were in the previous two examples), this is a simple
replacement.
dw delete the word starting at the d
>dw delete the last word
^w upshift the word starting at the ^
>vw downshift the last word