# Disabling \`auto-pairs\` when pasting using \`C-S-v\`

**URL:** <https://discuss.kakoune.com/t/disabling-auto-pairs-when-pasting-using-c-s-v/2225>\
**Category:** Help\
**Created:** [May 9, 2023, 2:24pm UTC](https://discuss.kakoune.com/t/disabling-auto-pairs-when-pasting-using-c-s-v/2225 "2023-05-09T14:24:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![joncol](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/joncol/32/1192_2.png) [@joncol](https://discuss.kakoune.com/u/joncol)\
**Post date:** [May 9, 2023, 2:24pm UTC](https://discuss.kakoune.com/t/disabling-auto-pairs-when-pasting-using-c-s-v/2225/1 "2023-05-09T14:24:12Z")

</div>

Hi, I just started playing with Kakoune today, and I’m finding it interesting so far.

I’m using the [auto-pairs](https://github.com/alexherbo2/auto-pairs.kak) plugin, and I want to disable it when I’m pasting something using `C-S-v`. If it’s enabled, it will insert a lot of extra closing delimiters (one for each opening delimiter in the copied text).

(I’m using `tmux`, and `alacritty` if that matters).

---

<div class="post-metadata">

**Author:** ![Screwtapello](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/screwtapello/32/12_2.png) [@Screwtapello](https://discuss.kakoune.com/u/Screwtapello)\
**Post date:** [May 9, 2023, 3:02pm UTC](https://discuss.kakoune.com/t/disabling-auto-pairs-when-pasting-using-c-s-v/2225/2 "2023-05-09T15:02:38Z")

</div>

What version of Kakoune are you using?

Kakoune recently added support for “bracketed paste” mode which should disable hooks like the auto-pairs plugin (probably) uses when you paste something with C-S-v.

---

<div class="post-metadata">

**Author:** ![joncol](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/joncol/32/1192_2.png) [@joncol](https://discuss.kakoune.com/u/joncol)\
**Post date:** [May 9, 2023, 4:10pm UTC](https://discuss.kakoune.com/t/disabling-auto-pairs-when-pasting-using-c-s-v/2225/3 "2023-05-09T16:10:57Z")

</div>

I’m on NixOS, and using `Kakoune v2022.10.31`, maybe that’s too old then?

---

<div class="post-metadata">

**Author:** ![Screwtapello](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/screwtapello/32/12_2.png) [@Screwtapello](https://discuss.kakoune.com/u/Screwtapello)\
**Post date:** [May 10, 2023, 2:42am UTC](https://discuss.kakoune.com/t/disabling-auto-pairs-when-pasting-using-c-s-v/2225/4 "2023-05-10T02:42:12Z")

</div>

Yes, it’s definitely something that’s landed since November. Hopefully there will be a new release soon; otherwise, NixOS may have a “kakoune-git” or “kakoune-nightly” package, or it’s pretty easy to build from source yourself.

---

<div class="post-metadata">

**Author:** ![cipharius](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/cipharius/32/184_2.png) [@cipharius](https://discuss.kakoune.com/u/cipharius)\
**Post date:** [May 14, 2023, 3:18pm UTC](https://discuss.kakoune.com/t/disabling-auto-pairs-when-pasting-using-c-s-v/2225/5 "2023-05-14T15:18:27Z")

</div>

I wanted to point out that usually it helps to disable hook execution for next command, so from normal mode try pasting like this: `\i<c-s-v>`
