The commands given below are used to copy areas of text and insert them at some other point in the buffer. Note that there is no corresponding "Cut and paste" section in the command references, so direct cross references have been included with each command.
When cutting and pasting, the first thing to do is to copy the region of text to be moved. This is done by taking the cursor to the beginning of the piece of text to be copied and pressing
to set a mark, and then taking the cursor to the end of the text and pressing
. This kills the region between the current point and the mark but keeps a copy of the killed text. This copy can then be inserted anywhere in the buffer by putting the cursor at the required position and then pressing
to insert the copied text.
If the original text is to be copied but not killed, use the command
This copies the text ready for insertion, but does not delete it.
Set a mark for a region. See Marks and regions.
Kill the region between the mark and current point, and save a copy of that region. See Deleting and killing text.
Copy the region between the mark and the current point. See Deleting and killing text.
Insert (yank) a copied region before the current point. See Inserting text.