Owner's manual

In the following example, the 1,2m4 subcommand moves the first two lines of the buffer to the
position following line 4:
1,2m4
1,$p
line that contains only
a period.
The only way to stop
appending is to type a
The 1,$p subcommand displays the contents of the buffer, showing that the move is complete.
To move a group of lines to the top of the buffer, use 0 (zero) as the line number for the line to
follow. In the next example, the 3,4m0 subcommand moves lines 3 and 4 to the top of the buffer:
3,4m0
1,$p
The only way to stop
appending is to type a
line that contains only
a period.
The 1,$p subcommand displays the contents of the buffer, showing that the move was made.
To move a group of lines to the end of the buffer, use $ as the line number for the line to follow:
1,2m$
1,$p
line that contains only
a period.
The only way to stop
appending is to type a
Changing Lines of Text—The c (Change) Subcommand
Use the c (change) subcommand to replace one or more lines of the buffer with one or more new
lines. The c subcommand first deletes the lines you want to replace and then lets you enter the new
lines, just as if you were using the a (append) subcommand. When you have entered all the new
text, type a period (.) on a line by itself. The general form of the c subcommand is the following:
starting_line,ending_linec
To change lines of text, do the following:
1. Enter a subcommand of the form:
n,mc
where:
is the number of the first line of the group to be deleted.n
is the number of the last line of the group (or the only line) to be deleted.m
2. Type the new lines, pressing Return at the end of each line.
3. Enter a period on a line by itself.
Changing a Single Line
To change a single line of text, use only one line number with the c (change) subcommand. You
can replace the single line with as many new lines as you like.
In the following example, the 2c subcommand deletes line 2 from the buffer, and then you can
enter new text:
2c
appending new material is to
use the proper keys to create a
.
1,$p
Changing Lines of Text—The c (Change) Subcommand 177