takac / vim-hardtime

Plugin to help you stop repeating the basic movement keys
MIT License
826 stars 30 forks source link

Disable when YCM shows autocomplete #44

Open shahrilnet opened 8 years ago

shahrilnet commented 8 years ago

Whenever YCM is showing its autocomplete list, I can't just fast scrolling looking up modules that I want to use/explore. Here is what I meant by YCM autocomplete :

image

For this autocomplete, vim-hardtime will limit my scrolling movement for 1 second. So can we disable whenever this autocomplete popup appears and enable vim-hardtime back when popup disappears?

takac commented 8 years ago

You're going to have to help me enable this as I don't use YCM. What can you use to tell that the autocomplete list is open so that we can disable hardtime temporarily?

shahrilnet commented 8 years ago

Sincerely, I also don't know. I have googled but didn't found the answer.

But as I'm thinking, do you think it's much proper for YCM to disable vim-hardtime while it opens it autocomplete buffer or vim-hardtime should take care of this problem itself?

takac commented 8 years ago

Hardtime should take of this issue. I don't have time to investigate YCM, hopefully someone else who runs into this issue can assist.

compor commented 7 years ago

I didn't have time to look around either, but I configured YCM to cycle through suggestions using Tab and Enter.

let g:ycm_key_list_select_completion=[ '<TAB>', '<Enter>' ]
let g:ycm_key_list_previous_completion=[ '<S-TAB>', '<S-Enter>' ]

Note that the cycle backwards bindings do not work on vim (but do work on gvim), since the terminal does not forward control sequences.

shahrilnet commented 7 years ago

@compor Your solution is much better, win-win situation for both plugins! :D

dylan-chong commented 7 years ago

Is this issue supposed to be closed?