03.03.2013 Views

DIGITAL RESEARCH(r) CP/M Plus TM (CP/M Version 3) Operating ...

DIGITAL RESEARCH(r) CP/M Plus TM (CP/M Version 3) Operating ...

DIGITAL RESEARCH(r) CP/M Plus TM (CP/M Version 3) Operating ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6.4 Basic Editing Commands <strong>CP</strong>/M 3 User's Guide<br />

The K (-Kill) Command<br />

The K command kills or deletes whole lines from the memory buffer and takes the<br />

forms:<br />

nK, -nK<br />

where n is the number of lines to be deleted. A positive number kills lines after the<br />

<strong>CP</strong>. A negative number kills lines before the <strong>CP</strong>. When no number is specified, ED<br />

kills the current line. If the character pointer is at the beginning of the second line,<br />

Emily Dickinson said,<br />

"'I find ecstasy in living -<br />

the mere sense of living<br />

is joy enough." <br />

then the command -K deletes the previous line and the memory buffer changes:<br />

"'I find ecstasy in living -<br />

the mere sense of living<br />

is joy enough."<br />

If the <strong>CP</strong> is in the middle of a line, a K command kills only the characters from<br />

the <strong>CP</strong> to the end of the line and concatenates the characters before the <strong>CP</strong> with the<br />

next line. A -K command deletes all the characters between the beginning of the<br />

previous line and the <strong>CP</strong>. A OK command deletes the characters on the line up to the<br />

<strong>CP</strong>.<br />

You can use the special # character to delete all the text from the <strong>CP</strong> to the<br />

beginning or end of the buffer. Be careful when using #K because you cannot reclaim<br />

lines after they are removed from the memory buffer.<br />

6.4.4 Inserting Characters into the Memory Buffer<br />

The I (Insert) Command<br />

To insert characters into the memory buffer from the screen, use the I command.<br />

6-14

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!