Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

Any way to copy with 'y' command to clipboard outside of vim? #15

Open
sandric opened this issue Jul 30, 2014 · 7 comments
Open

Any way to copy with 'y' command to clipboard outside of vim? #15

sandric opened this issue Jul 30, 2014 · 7 comments

Comments

@sandric
Copy link

sandric commented Jul 30, 2014

I mean is there any way of copying some text from inside of vim and then copy it somewhere else in computer with command-V? Thanks.

@coolwanglu
Copy link
Owner

This could be used
https://github.com/zeroclipboard/zeroclipboard

@sandric
Copy link
Author

sandric commented Jul 30, 2014

yes, saw this too, but how can I actually get clipboard string value after 'y' command? Is there some javascript method in vim.js lib or emscripten? Or is there some temporary file/device where clipboard is storing from which I can read via emscripten FS lib?

@coolwanglu
Copy link
Owner

I remembered that in os_web.c or gui_web.c, there's a function handling clipboard, which is empty right now

@joker-b
Copy link

joker-b commented Jul 30, 2014

in std graphical vim this is register "+

@trusktr
Copy link

trusktr commented Nov 9, 2014

👍 This would be nice. Also to be able to paste into the editor.

@coolwanglu
Copy link
Owner

Just found out that clipboard is available in node-webkit, would be fun adding it.

@trusktr
Copy link

trusktr commented Jan 31, 2015

@joker-b in MacVim, it's "*, which I find easier to press than "+, f.e. pinky finger on " and pointer finger on *.

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

No branches or pull requests

4 participants