roxma / vim-tmux-clipboard

seamless integration for vim and tmux's clipboard
MIT License
290 stars 24 forks source link

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

Open jseifer opened 8 years ago

jseifer commented 8 years ago

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 commented 8 years ago

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 commented 7 years ago

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...