Youcompleteme: YCM prevents me from exiting insert mode.

Created on 19 Mar 2014  路  8Comments  路  Source: ycm-core/YouCompleteMe

Step:

  1. in insert mode, type some chars to trigger the completing list
  2. hit TAB to select the any one
  3. after selecting the target one, hit ESC
  4. vim just fails to exit insert mode.
  5. You need to hit ESC several times to exit insert mode.

This quite annoying. Could you please help fix this? Or is there any configuration to fix this?

All 8 comments

It's quite annoying to hit ESC several time in order to exit insert mode. Any available insignts here?

Nothing in YCM does this. Sounds like a conf issue.

@screwzm did you figure out what your issue was? I am running into this same issue.

If someone know how to avoid multiple esc keys to select currect selected word; insert it; and later exit insert mode. it would be awesome !!!

I had this same exact problem. It turns out it was a conflict between
https://github.com/Townk/vim-autoclose and YouCompleteMe
If you recreate a minimal vimrc with just these two plugins you can reproduce this 100%.

If this is the issue, you may try the alternative delimitMate which is more known, and I've switched to it from some auto-close plugin I used before once I learned @Valloric was using it too. This is my sample configuration for delimitMate.

@oblitum Thanks =) Will give delimitMate a try.

@yantis @oblitum I've forgot to update the post, you can also use the following command on your vimrc to do the expected behaviour let g:AutoClosePumvisible = {"ENTER": "<C-Y>", "ESC": "<ESC>"}

Was this page helpful?
0 / 5 - 0 ratings