tpope / vim-surround

surround.vim: Delete/change/add parentheses/quotes/XML-tags/much more with ease

Home Page:https://www.vim.org/scripts/script.php?script_id=1697

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possible to make internal `d` operator using the blackhole register instead of the default register

rockyzhang24 opened this issue · comments

commented

Have been using this plugin for many years. It is working like a charm.

Recently I tried nvim-neoclip which is a clipboard manager for Neovim. I noticed that when I use vim-surround to add or change surroundings, the text itself and the surroundings will be added into the yank history. Please see this issue.

In the source code of vim-surround, I see that you use d operator with the default the register. This will trigger neoclip to store the deleted contents. I am wondering whether it is possible to use the blackhole register instead of the default register?

Thank you so much.