Preface: I might be asking the wrong question, so I'll just say what my problem is first.
Whenever I use ^Z
to background vim, then later (can be hours later) run fg
to bring it back, YouCompleteMe doesn't do any completion (however, it does sometimes say below the status line that it needs to be restarted)
A workaround has been to run :YcmRestartServer
whenever I foreground vim manually, but I'd like to have that run automatically (if it isn't already running).