wellle / tmux-complete.vim

Vim plugin for insert mode completion of words in adjacent tmux panes
MIT License
515 stars 21 forks source link

Cannot leave insert mode #72

Open justb3a opened 7 years ago

justb3a commented 7 years ago

This is a really strange behaviour, maybe you have an idea what could cause this. I use the same setup on another mac (both macOS Sierra, Vim 8.0.3) and there's everything woking without any problem.

I use this plugin in combination with neocomplete. The package manager is dein.vim. If I enter insert mode, I'm not able to leave it again. The only way to exit vim is to close the tmux session/window or to quite the whole terminal (same behaviour in terminal, iTerm, MacVim, it doesn't matter if I started a tmux session before or not). If I enter "escape", ^[ gets typed.

test

If I uninstall wellle/tmux-complete.vim everything works as expected.

wellle commented 7 years ago

Oh that is really strange. A few questions:

  1. What exactly were you typing in that gif?
  2. Does the same happen if you disable neocomplete?
  3. I can't see the tmux bar. Is the Vim instance in your gif running in a tmux instance?
  4. If not, was there any tmux instance still running?
  5. If there was a tmux instance running, did it have very many sessions/windows?
justb3a commented 7 years ago
  1. It doesn't matter what I type, if the number of letters is reached until the autocompletion starts (in my case three letters: let g:neocomplete#auto_completion_start_length = 3) I cannot leave insert mode. If I type T E S T with a space after each letter, it's working.
  2. Nope, as soon as I disable neocomplete (let g:neocomplete#enable_at_startup = 0) everything goes back to normal (but neocomplete is essential for me)
  3. It doesn't matter whether I attach a tmux session or not. (The same problem exists if I open Applications/MacVim.app directly)
  4. yes, running but detached
  5. not at all, just two session containing two or three windows (much less as usual)
wellle commented 7 years ago

Ok thanks for the input. I'll try to see if I can somehow reproduce that. But I'm afraid I won't be able to.

I could imagine to add some debug logs to tmux-complete to see where it gets stuck. Would you be willing to try that on your machine so we can see what's going on?

justb3a commented 7 years ago

I could imagine to add some debug logs to tmux-complete to see where it gets stuck. Would you be willing to try that on your machine so we can see what's going on?

Definitely. I'm very curious about getting to know what causes this.