vim-hardtime icon indicating copy to clipboard operation
vim-hardtime copied to clipboard

Disable when YCM shows autocomplete

Open shahrilnet opened this issue 9 years ago • 6 comments

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?

shahrilnet avatar Sep 12 '16 11:09 shahrilnet

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?

takac avatar Sep 12 '16 11:09 takac

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?

shahrilnet avatar Sep 20 '16 10:09 shahrilnet

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

takac avatar Sep 20 '16 13:09 takac

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.

compor avatar Nov 23 '16 08:11 compor

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

shahrilnet avatar Nov 23 '16 15:11 shahrilnet

Is this issue supposed to be closed?

dylan-chong avatar Feb 05 '17 05:02 dylan-chong