{"action":"created","issue":{"url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1731","repository_url":"https://api.github.com/repos/Valloric/YouCompleteMe","labels_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1731/labels{/name}","comments_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1731/comments","events_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1731/events","html_url":"https://github.com/Valloric/YouCompleteMe/issues/1731","id":111170191,"number":1731,"title":"Need a way to temporarily halt autocompletion","user":{"login":"krafczyk","id":6449564,"avatar_url":"https://avatars.githubusercontent.com/u/6449564?v=3","gravatar_id":"","url":"https://api.github.com/users/krafczyk","html_url":"https://github.com/krafczyk","followers_url":"https://api.github.com/users/krafczyk/followers","following_url":"https://api.github.com/users/krafczyk/following{/other_user}","gists_url":"https://api.github.com/users/krafczyk/gists{/gist_id}","starred_url":"https://api.github.com/users/krafczyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krafczyk/subscriptions","organizations_url":"https://api.github.com/users/krafczyk/orgs","repos_url":"https://api.github.com/users/krafczyk/repos","events_url":"https://api.github.com/users/krafczyk/events{/privacy}","received_events_url":"https://api.github.com/users/krafczyk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":30,"created_at":"2015-10-13T12:31:48Z","updated_at":"2016-04-26T20:54:23Z","closed_at":null,"body":"I've been finding lately, that when I have a command to format a bunch of lines of code, and that code involves a class of some sort, YouCompleteMe will attempt to recompile and present a list of suggestions after getting to the end of a pointer or what-have-you.\r\n\r\nUnfortuantely, this greatly slows down vim.\r\n\r\nWe need a way to temporarily disable the autocompletion features while a large command block executes.\r\n\r\n(for instance I'm often doing 200@z or something like it, and it takes a while with all the recompiles and suggestion boxes popping up.)\r\n\r\nI looked, but didn't see anything which would help me in the documents."},"comment":{"url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/comments/214882912","html_url":"https://github.com/Valloric/YouCompleteMe/issues/1731#issuecomment-214882912","issue_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1731","id":214882912,"user":{"login":"sehe","id":324097,"avatar_url":"https://avatars.githubusercontent.com/u/324097?v=3","gravatar_id":"","url":"https://api.github.com/users/sehe","html_url":"https://github.com/sehe","followers_url":"https://api.github.com/users/sehe/followers","following_url":"https://api.github.com/users/sehe/following{/other_user}","gists_url":"https://api.github.com/users/sehe/gists{/gist_id}","starred_url":"https://api.github.com/users/sehe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sehe/subscriptions","organizations_url":"https://api.github.com/users/sehe/orgs","repos_url":"https://api.github.com/users/sehe/repos","events_url":"https://api.github.com/users/sehe/events{/privacy}","received_events_url":"https://api.github.com/users/sehe/received_events","type":"User","site_admin":false},"created_at":"2016-04-26T20:54:23Z","updated_at":"2016-04-26T20:54:23Z","body":"@vheon That's smart. Using the autocommands in our favour.\r\n\r\nSadly, it doesn't work, I just tested it. I can interrupt the long running operation (after several minutes), but then YCM is stuck in an error state spewing error messages all the time, so I have to `kill -9` vim anyways. \r\n\r\n(_Running without YCM has slowness for this large diff, but interrupting makes the fugitive buffer responsive and functional, showing that YCM /can/ cope_)"}}