(vim) Close ycm preview window only once you exit the insert mode.