Sublime Forum

Yanking from vintage mode to system

#1

Hi,

When yanking (e.g. yy) in vintage mode, the contents are copied to an internal buffer that Sublime has, so only Sublime knows about them. This text can’t later be copied to other windows.
Is there any way to make yanking in vintage mode copy to the system buffer all the time instead?

vim supports this, and I have it turned on in vim.

0 Likes

#2

Does anyone have any idea how to do this?

Perhaps implement a keybinding that takes “y” and copies to system clipboard instead of to vintage’s internal clipboard?

0 Likes

#3
"*y

That should do it.

0 Likes

#4

Yeah, but I’d really rather not do that every time. I always want to yank to the system clipboard.

In Vim, the line to do this is:
set clipboard=unnamed

0 Likes

#5

Hey,

So it looks like the Nightly build has the new option called “vintage_use_clipboard” by guillermooo.

As far as I can tell, this solves one direction - yanking things from Sublime will go to the system clipboard. Which is awesome!

However it looks like the other direction isn’t working, i.e., when trying to paste using “p” in Sublime, even with “vintage_use_clipboard” on, pasting is still done from the internal Sublime yankring. This is inconsistent with vim’s handling of this.

Btw, I’m unclear whether it’s “vintage_use_clipboard” or “vintage_clipboard = unnamed”.

0 Likes

#6

Ooops! I’ve forgotten about that. Should be easy to fix, though.

The final name is “vintage_use_clipboard”, which takes a bool. Replicating all of the options of the clipboard setting in Vim didn’t seem necessary.

BTW, it’d be great if you could report issues to the GitHub repo (sublimehq/Vintage). I have the feeling other people contributing to Vintage don’t check the forums as often.

Cheers,
G

0 Likes

#7

I’m actually unclear where I should be reporting bugs to. 'Cause I actually have a huge list of issues in vintage. I even considered jumping in and making some changes myself.

I’ve just never really used github before. Maybe I’ll give it a go soon.

0 Likes