Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return to vim normal mode immediately after pressing ESC key #9

Closed
linhmtran168 opened this issue Feb 4, 2013 · 11 comments
Closed

Comments

@linhmtran168
Copy link

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?

@Valloric
Copy link
Member

Valloric commented Feb 5, 2013

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.

@Valloric Valloric closed this as completed Feb 5, 2013
@linhmtran168
Copy link
Author

Thank you,

It was a problem with the vim-autoclose plugin.

@FrostyX
Copy link

FrostyX commented Jul 7, 2014

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?

@vheon
Copy link
Contributor

vheon commented Jul 7, 2014

try some other plugin, like Raimondi/delimitMate

@FrostyX
Copy link

FrostyX commented Jul 7, 2014

Thank you @vheon , that solves the issue.

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

FrostyX added a commit to FrostyX/dotfiles that referenced this issue Jul 7, 2014
@Valloric
Copy link
Member

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

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

@Valloric Valloric reopened this Jul 22, 2014
@JohnnyMudcrab
Copy link

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

fixes the vim-autoclose problem

Grimy pushed a commit to Grimy/YouCompleteMe that referenced this issue Dec 22, 2014
cs-completer: improvements for solution detection
@gergap
Copy link

gergap commented Aug 10, 2015

thx, JohnnyMudcrab.
your solution works also for me.

@Qix-
Copy link

Qix- commented Apr 13, 2016

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'

@vheon
Copy link
Contributor

vheon commented Apr 13, 2016

@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.

@legendmohe
Copy link

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

@ycm-core ycm-core locked as resolved and limited conversation to collaborators Jun 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants