# Cutting and pasting multiple lines

**URL:** <https://discuss.kakoune.com/t/cutting-and-pasting-multiple-lines/1566>\
**Category:** Help\
**Created:** [February 6, 2021, 10:15am UTC](https://discuss.kakoune.com/t/cutting-and-pasting-multiple-lines/1566 "2021-02-06T10:15:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tgirod](https://discuss.kakoune.com/letter_avatar_proxy/v4/letter/t/35a633/32.png) [@tgirod](https://discuss.kakoune.com/u/tgirod)\
**Post date:** [February 6, 2021, 10:15am UTC](https://discuss.kakoune.com/t/cutting-and-pasting-multiple-lines/1566/1 "2021-02-06T10:15:57Z")

</div>

Hey. Couldn’t find how to do this.

1. select multiple separated lines in a document (eg. `%s#sometag<return>x`).
2. `d` to cut those lines
3. `gh` to move to the end of the document
4. paste all the lines that were cut at 2.

But when I do that, only one of the selections is pasted. How can I do that?

---

<div class="post-metadata">

**Author:** ![ftonneau](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/ftonneau/32/295_2.png) [@ftonneau](https://discuss.kakoune.com/u/ftonneau)\
**Post date:** [February 6, 2021, 10:31am UTC](https://discuss.kakoune.com/t/cutting-and-pasting-multiple-lines/1566/2 "2021-02-06T10:31:46Z")

</div>

Typing `<a-p>` (alt paste) instead of `p` (paste) should do the job. The key documentation (`:doc keys`) says that `<a-p>` should:

```
paste all after the end of each selection, and select each pasted string
```
