Youcompleteme: Return to vim normal mode immediately after pressing ESC key

Created on 4 Feb 2013  路  11Comments  路  Source: ycm-core/YouCompleteMe

Currently, Vim returns to edit mode after pressing ESC key when the YCM's auto-complete popup is displaying. I'm used to SuperTab's behavior, so I find it a litte inconvenient to have to press ESC key 2 times to return to normal mode. Is there an option in YCM that help me change this behavior?

Most helpful comment

let g:AutoClosePumvisible = {"ENTER": "", "ESC": ""}

fixes the vim-autoclose problem

All 11 comments

Sorry, I cannot reproduce this. When the popup menu is displayed, pressing ESC once takes me back to normal mode. I don't need to press ESC twice.

It's possible you have some misbehaving mapping.

Thank you,

It was a problem with the vim-autoclose plugin.

It was a problem with the vim-autoclose plugin.

Same issue here, disabling vim-autoclose helps, but how to get YCM and vim-autoclose to work together?

try some other plugin, like Raimondi/delimitMate

Thank you @vheon , that solves the issue.

It would be nice to mention it in README.md :-)

It would be nice to mention it in README.md :-)

It's already mentioned, and has been for years.

let g:AutoClosePumvisible = {"ENTER": "", "ESC": ""}

fixes the vim-autoclose problem

thx, JohnnyMudcrab.
your solution works also for me.

I don't use vim-autoclose and I'm still experiencing this rather annoying issue.

Current plugins:

Plug 'tpope/vim-sensible'
Plug 'freeo/vim-kalisi'
Plug 'vim-airline/vim-airline'
Plug 'scrooloose/nerdtree'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'scrooloose/syntastic'
Plug 'airblade/vim-gitgutter'
Plug 'Valloric/YouCompleteMe'
Plug 'ryanoasis/vim-devicons'
Plug 'editorconfig/editorconfig-vim'
Plug 'kien/ctrlp.vim'

@Qix- try to not load every plugin except for YouCompleteMe and then bring them in one at a time until you figure out which one is the culprit.

Plugin 'bling/vim-airline'
" Plugin 'bling/vim-bufferline'
Plugin 'scrooloose/nerdtree'
Plugin 'altercation/vim-colors-solarized'
Plugin 'vim-scripts/TaskList.vim'
Plugin 'dyng/ctrlsf.vim'
Plugin 'scrooloose/syntastic'
Plugin 'majutsushi/tagbar'
Plugin 'tpope/vim-repeat'
Plugin 'mhinz/vim-startify'
Plugin 'Lokaltog/vim-easymotion'
Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'mg979/vim-visual-multi'
Plugin 'tomtom/tcomment_vim'
Plugin 'junegunn/vim-easy-align'
Plugin 'Raimondi/delimitMate'
Plugin 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plugin 'junegunn/fzf.vim'
Plugin 'udalov/kotlin-vim'
Plugin 'jiangmiao/auto-pairs'
Plugin 'romainl/Apprentice'
Plugin 'Yggdroot/indentLine'
Plugin 'airblade/vim-rooter'
Plugin 'ycm-core/YouCompleteMe'

Removing 'bling/vim-bufferline' fixes this problem

Was this page helpful?
0 / 5 - 0 ratings