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

Yanking in vim and switching to another pane freezes vim #1

Open
jseifer opened this issue Aug 1, 2016 · 2 comments
Open

Yanking in vim and switching to another pane freezes vim #1

jseifer opened this issue Aug 1, 2016 · 2 comments

Comments

@jseifer
Copy link

jseifer commented Aug 1, 2016

I installed this using Vundle and placed the following at the bottom of my vimrc:

Plugin 'tmux-plugins/vim-tmux-focus-events'
Plugin 'roxma/vim-tmux-clipboard'

It seems to load just fine. However, when I switch to another pane in tmux after yanking in vim, pasting text doesn't work. Also, when I switch back to vim, it will be unresponsive and require a kill -9.

@roxma
Copy link
Owner

roxma commented Aug 1, 2016

Thanks for your feedback! Could you provide the output of pstree -h <pid_of_vim> when vim freezes, vim --version, tmux -V and your system information.

BTW, you may try debug the plugin by yourself, it's only 64 lines of vimscript. I would appreciate a pull request.

@ralish
Copy link

ralish commented Dec 18, 2016

It's not Vim that hangs exactly but rather the tmux loadb - command it spawns, which is of course done by vim-tmux-clipboard. You can kill that process and Vim will come back to life instead of killing Vim itself. As for the issue itself, I'm not exactly sure what causes it, but I can say that upgrading from tmux v1.8 to v2.3 resolves the issue for me. Whether that means it's a tmux bug or just that some internals have changed in a way that the underlying problem is masked I'm not sure. I'll try to find some time to look at it in the future as a curiosity...

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

3 participants