wellle / tmux-complete.vim

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

Strange behaviour #66

Open cpfaff opened 8 years ago

cpfaff commented 8 years ago

He

I really like your plug-in and want to use it. But since I installed it I have some strange behaviour now and then the cursor seems to hang a bit and then something is inserted but I do not where it comes from. I know that this is not a really helpful description of the problem yet as it does not come with details or a description how to reproduce. However I just wanted to open this to let you know and then try to pin the thing down and add the information here. Or maybe you already have an idea what could cause that or can help me to pin down the problem so we can find a fix.

EDIT:

I use the plugin with neocomplete:

Thus my configuration is just adding this to my vim configuration as you write in your readme.

let g:tmuxcomplete#trigger = ''
wellle commented 8 years ago

Thanks for bringing this up. But yeah that's not really enough information for me to know what's happening.

If you have many tmux sessions or windows there are many lines that need to be processed to find completion candidates. This might cause the delay you see. But if it's only slow sometimes, then it might be something different.

If there's only one match found, it might complete immediately. Could this explain the text that is being inserted? In that case it would be working as expected. Or is it something not found in any of your tmux windows? In that case it might help if you could tell me what gets inserted exactly.

And if there is an error, you might see something useful when you look at :messages. If so, please show me what you see there next time it happens.

cpfaff commented 8 years ago

Thanks for the fast answer and the first points to check out. I will observe it now more carefully and keep you updated with the details.

cpfaff commented 8 years ago

I think now I found something reproducible. When I type in insert mote an h for example writing Ich I geht Ichh. I get it twice no idea why. It is just directly inserted. If I remove your plugin then this does not happen anymore.

cpfaff commented 8 years ago

I also noticed that this is only happening in certain filetypes. In my vimrc it is working nicely whereas if I edit a mail with mutt and the filetype is mail it happens. In text files (ft=text) it happens as well.

cpfaff commented 8 years ago

Sometimes also other characters are inserted repeatedly.