Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to turn off complete as you type #53

Closed
SirVer opened this issue Feb 6, 2013 · 9 comments
Closed

Option to turn off complete as you type #53

SirVer opened this issue Feb 6, 2013 · 9 comments

Comments

@SirVer
Copy link

SirVer commented Feb 6, 2013

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?

@rizzatti
Copy link
Contributor

rizzatti commented Feb 6, 2013

@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!

@Valloric
Copy link
Member

Valloric commented Feb 6, 2013

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.

@OliverUv
Copy link

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.)

@henrikbjorn
Copy link

👍

@mrkline
Copy link

mrkline commented Mar 6, 2013

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.

@Valloric
Copy link
Member

As @slavik262 mentions, setting g:ycm_min_num_of_chars_for_completion to a large number effectively implements this feature. Docs now mention this.

@danpolanco
Copy link

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.

@eleijonmarck
Copy link

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

@puremourning
Copy link
Member

That is a different feature for which we would need a new issue and a use case I can’t think why you would want that independently :/

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

9 participants