Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rockyzhang24 opened this issue Feb 5, 2022 · 0 comments

Comments

@rockyzhang24
Copy link

rockyzhang24 commented Feb 5, 2022

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.

@rockyzhang24 rockyzhang24 changed the title Does this plugin use yank operation internally? Possible to make internal d operator using the blackhole register instead of the default register Feb 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant