I have been using vim for a short time, so I may not know a lot, please forgive me.
There is a problem with my vim. It cannot enter normal mode from insert mode by pressing esc/ctrl-[ only once, but needs to press esc/ctrl-[ twice.
When I first press esc/ctrl-[ show command remind me I entered ^[.
I have tried to turn off all the plugins I use, but it doesn't solve.
There is my vimrc file:
syntax enable
set showcmd
set relativenumber
set shiftwidth=4 tabstop=8
set notimeout
set autowrite
call plug#begin('~/.vim/plugged')
Plug 'vim-airline/vim-airline'
Plug 'ycm-core/YouCompleteMe'
Plug 'raimondi/delimitmate'
call plug#end()
System: Ubuntu 20.04, terminal vim, local
--cleanwhen you launch. Next you could turn off your three plugins then turn them on/off one at a time to see if any are the cause. Basically you want to debug your vimrc. Here's a full treatment of that topic: How do I debug my vimrc file? Welcome to Vi&Vim SE. – B Layer Apr 17 '21 at 01:21:imap <ESC>show any mappings that might be defined starting with the ESC key? – filbranden Apr 17 '21 at 04:35:verboseto see where it was defined... Cheers! – filbranden Apr 17 '21 at 20:00