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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] vim.useSystemClipboard: false affects default Vim behaviour. #2051

Closed
Vvkmnn opened this issue Oct 4, 2017 · 4 comments
Closed

Comments

@Vvkmnn
Copy link

Vvkmnn commented Oct 4, 2017

  • Click thumbs-up 馃憤 on this issue if you want it!
  • Click confused 馃槙 on this issue if not having it makes VSCodeVim unusable.

The VSCodeVim team prioritizes issues based on reaction count.


BUG REPORT

The "vim.useSystemClipboard": false parameter screws up VscodeVim's behaviour. Not entirely sure why, but I'm happy to provide additional context as necessary.

Opened code from Terminal, and iTerm2 just to check; found the same error.

Environment:

  • VSCode Version: 1.16.1
  • VsCodeVim Version: 0.10.0
  • OS: macOS 10.12.6

What happened:

Here' a gif summarizing the workflow. tl;dr: Flipping this parameter to true makes yy, dd, etc. not work.

What did you expect to happen:
I expected text to be copied to the System Clipboard, and for the default Vim behaviour to work. Neither does.

How to reproduce it:
This is a vanilla install on a new machine. Already restarted a few times.

Open to suggestions.

Related Issues
#1830

Vvkmnn added a commit to Vvkmnn/dotfiles that referenced this issue Oct 4, 2017
@Chillee
Copy link
Member

Chillee commented Oct 4, 2017

@Vvkmnn It's likely that the library we're using for interfacing with the system clipboard is crashing when you try to do yy.

@Vvkmnn
Copy link
Author

Vvkmnn commented Oct 5, 2017

Fair enough. I'll try and use other registers for now.

Would you recommend building from source or trying the Insider version? Not sure that'd fix it; just thinking out loud.

I could also try logging the event if that helps trace it.

@Chillee
Copy link
Member

Chillee commented Oct 6, 2017

@xconverge I seem to remember some other person had this problem. Do you remember how he fixed it?

@Vvkmnn Vvkmnn changed the title [Bug Report] "vim.useSystemClipboard": false affects default Vim behavior. [Bug Report] vim.useSystemClipboard: false affects default Vim behaviour. Oct 18, 2017
@Vvkmnn
Copy link
Author

Vvkmnn commented Oct 30, 2017

Tore away at my config until I got it working; turns out it wasn't this plugin's fault at all. Sorry guys.

The true issue appeared to be launching code . from inside a Tmux session. Electron might mangle up what clipboard is allowed to refer to when piped through it:

microsoft/vscode#36755

FIX: Just launch Vscode outside Tmux (or help figure out the error: microsoft/vscode#24112)

Keep up the good work. 鉁岋笍

@Vvkmnn Vvkmnn closed this as completed Oct 30, 2017
Vvkmnn added a commit to Vvkmnn/dotfiles that referenced this issue Oct 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants