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

[Feature Request]: Use vim.v.register to set the register when yanking #44

Open
Groz17 opened this issue Mar 16, 2024 · 1 comment
Open
Assignees
Labels
enhancement New feature or request

Comments

@Groz17
Copy link

Groz17 commented Mar 16, 2024

There's a Vim variable v:register that returns the default register " if the clipboard option is empty or */+ if it contains unnamed or unnamedplus respectively.

For those users that don't set the clipboard option to unnamedplus, it would be better if you used that Vim variable (vim.v.register in Lua) instead of the + (plus) register.

Thanks for the plugin!

@LudoPinelli
Copy link
Owner

Thank you! I didn't know about this variable. I will definitely use it for the 2.0 that is under development. I guess it should be relatively easy to make the change in to the current version so I'll look into it as well.

@LudoPinelli LudoPinelli self-assigned this Mar 17, 2024
@LudoPinelli LudoPinelli added the enhancement New feature or request label Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants