Lovely plugin!
As requested in internal email, here is a bug report.
I hate to have the completion box open constantly - mainly because it hijacks my tab key which I cannot use for anything else anymore now. Would it be possible to start the YCM "mode" only when an initial tab is pressed?
@SirVer, lol. I was just wondering how I was going to setup the snippets now, cause I got so many myself using UltiSnips :). Big fan of it.
@Valloric man, this is really lovely!
This feature is coming, but I have a lot on my plate right now (you might have noticed :)) so you may have to wait a bit.
Meanwhile, I suggest re-binding snipping to something other than tab, I've found CTRL-j/k to be really great (having rebound capslock to ctrl, this becomes so easy to press, ensuring that autocomplete selection doesn't reduce my typing flow.)
:+1:
This feature would be greatly appreciated. Is there any way to emulate it in the meantime?
I suppose I could set g:ycm_min_num_of_chars_for_completion to something very large.
As @slavik262 mentions, setting g:ycm_min_num_of_chars_for_completion to a large number effectively implements this feature. Docs now mention this.
I wasn't sure where to put this, so I apologize if this isn't the right place. Let me know where to put it next time, and I'll do that. I tired googling "temporarily disable autocomplete youcompleteme" and this thread came up close to the top.
I was having a similar problem. I was typing regular word docs and couldn't figure out how to temporarily disable the tab completion pop up box. Let me know if there is a better way, but for anyone else looking for a solution, I added this to my .vimrc:
nnoremap <leader>y :let g:ycm_auto_trigger=0<CR> " turn off YCM
nnoremap <leader>Y :let g:ycm_auto_trigger=1<CR> "turn on YCM
Now, I can press "\" and y or Y to enable or disable YCM.
I love the plugin but a final detail would be to have a sleep or delay for the autocompletetion. I could open a issue devoted to this if there is not an option for this lieke:
g:ycm_auto_trigger_delay=0.4 " milliseconds or seconds
That is a different feature for which we would need a new issue and a use case I can鈥檛 think why you would want that independently :/
Most helpful comment
I wasn't sure where to put this, so I apologize if this isn't the right place. Let me know where to put it next time, and I'll do that. I tired googling "temporarily disable autocomplete youcompleteme" and this thread came up close to the top.
I was having a similar problem. I was typing regular word docs and couldn't figure out how to temporarily disable the tab completion pop up box. Let me know if there is a better way, but for anyone else looking for a solution, I added this to my .vimrc:
Now, I can press "\" and y or Y to enable or disable YCM.