Added a copypaste from stackoverflow that stops vim from waiting for extra keystrokes folloine Esc keypresses, so that it doesn't hang momentarity going from insert -> command mode.

This commit is contained in:
Jono Targett 2022-08-03 16:52:25 +09:30
parent 5d1720c6bb
commit e0f63d9e61

10
.vimrc
View File

@ -39,3 +39,13 @@ set hidden
nnoremap <C-N> :bnext<CR>
nnoremap <C-P> :bprev<CR>
" leave insert mode quickly
if ! has('gui_running')
set ttimeoutlen=10
augroup FastEscape
autocmd!
au InsertEnter * set timeoutlen=0
au InsertLeave * set timeoutlen=1000
augroup END
endif