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

Encrypt to clipboard #15

Open
nyarly opened this issue Feb 14, 2014 · 3 comments
Open

Encrypt to clipboard #15

nyarly opened this issue Feb 14, 2014 · 3 comments

Comments

@nyarly
Copy link

nyarly commented Feb 14, 2014

A command to encrypt the current buffer to the clipboard would be really helpful

@jamessan
Copy link
Owner

Can you clarify what functionality you're asking for? Do you simply want Vim to copy the contents of the already encrypted file on disk into the clipboard?

@nyarly
Copy link
Author

nyarly commented Feb 18, 2014

Ideally, I'd like to be able to edit a buffer, copy the encrypted version
to the clipboard without writing a file. Currently using xsel; rm for the
task.
On Feb 18, 2014 12:07 PM, "James McCoy" [email protected] wrote:

Can you clarify what functionality you're asking for? Do you simply want
Vim to copy the contents of the already encrypted file on disk into the
clipboard?


Reply to this email directly or view it on GitHubhttps://github.com//issues/15#issuecomment-35427337
.

@jamessan
Copy link
Owner

You could do this with :w !gpg --armor --encrypt --output - | xsel.

I'll think about adding a :GPGArmor command or some such to turn the buffer (or create a new buffer) into an encrypted/armored version of itself. Then you could either use Vim's own mechanisms to interact with the clipboard or feed it to xsel.

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

2 participants