-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Copy-paste from vim in terminal window #25000
Comments
@Lallassu vim noob here, how do you copy text with vim? |
@Tyriar Well, usually you copy with yanking for example marking a part of the text and press "y" without input mode on. That is something that I guess will not be able to work since it will be yanked into vim's internal buffers. But in my case (which I might have been a bit vague about) I copied using the cursor and marking the text in the vim editor (inside the vscode terminal) and than used cmd-c (osx). It's not a big issues since it works using less/more on the files. But in some cases it would be nice since I use the terminal to open files from other projects than the project currently open in vscode. I hope this explains the issue a bit clearer. |
So that works in Terminal.app as well? The reason it doesn't work if because you have 2 selections, the terminal one (mouse selection) and the vim one (managed by the application). cmd+c will copy the mouse selection only. Related: xtermjs/xterm.js#456 |
Yes I'm aware of that. But I just realised that the issue is not the copy part. It seems to copy, but it copies from the beginning of the visible buffer, not the marked part. Using vim outside of vscode works fine using mouse marking -> cmd-c. Marking (with the mouse) a part in the vim buffer that I would like to copy just auto-marks the whole visible window (not beginning of the actual buffer in vim). And then the whole window is being copied. |
I'm having this issue as well. |
I found a solution to this problem. In selection manager, replacing all reads from The overall cause is that |
I believe this is fixed in the latest version |
I'm using OSX and if I use a terminal in vscode and then edit a file with vim in this terminal window I cannot copy text from it to an open file in vscode. It's possible to copy directly from the terminal (less/more ) but not from vim.
Might be a OSX/vim issue, but it would be great if this worked.
The text was updated successfully, but these errors were encountered: