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:
parent
5d1720c6bb
commit
e0f63d9e61
10
.vimrc
10
.vimrc
@ -39,3 +39,13 @@ set hidden
|
|||||||
nnoremap <C-N> :bnext<CR>
|
nnoremap <C-N> :bnext<CR>
|
||||||
nnoremap <C-P> :bprev<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
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user