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

Support for clipboard=unnamed / using system clipboard for unnamed register #650

Closed
Platzer opened this issue Aug 25, 2016 · 7 comments
Closed

Comments

@Platzer
Copy link
Contributor

Platzer commented Aug 25, 2016

A setting to use the unnamed register as alias for the * register. So yy for example copies to current line to the system clipboard, and p would insert from the clipboard.

Should be a user setting (e.g. useSystemClipboard), and disbaled by default.

Further readings:

@rebornix
Copy link
Member

rebornix commented Aug 25, 2016

We've supported Vim configurations so it would be easy to add useSystemClipboard. @aminroosta , you may be interested in this task since you are the Father of Clipboard :)

Anyone who is interested in contributing can take it as well.

@aminroosta
Copy link
Contributor

@rebornix Sure, I will send a pr tonight ;-)

@aminroosta
Copy link
Contributor

@rebornix Sorry for the delay, i completely forgot about it 😢
Please let me know if you want any changes to the PR #655

@aminroosta
Copy link
Contributor

I wanted to write a test for this but our newTest and newTestOnly functions are async. It's not easy to test new configuration options without affecting other tests.

@rebornix @johnfn I think it might be a good time to overload these functions to offer preparation and clean up callabacks. That way we can test new configuration options without affecting other tests.

@rebornix
Copy link
Member

@aminroosta how about putting those tests sharing the same configuration into one suite and leverage the setup and teardown?

@jpoon
Copy link
Member

jpoon commented Sep 5, 2016

This is closed with PR #665. Thanks @aminroosta

To use, add the following to your user/workspace settings:

  "vim.useSystemClipboard": true

@jpoon jpoon closed this as completed Sep 5, 2016
@bufke
Copy link

bufke commented Sep 20, 2016

This doesn't appear to be working for me. When enabled yank no longer seems to do anything. After a yank I'm unable to paste in the system or in VS Code (for instance p). Using Ubuntu 16.04. My settings are:

{
    "vim.useCtrlKeys": true,
    "vim.useSystemClipboard": true
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants