Key-specific timeoutlen in vim -
Key-specific timeoutlen in vim -
is possible set different timeoutlen depending on typed key? example, have short timeout go <esc>
remapping jk
or jj
set timeoutlen=200
but if start <leader>
, i'd have timeoutlen longer, because have mappings require pressing sequence of keys, not easy type jk
.
there's nil built-in. regards mapping, mean :inoremap jj <esc>
, , apply quickly, need ensure there no other insert mode mappings start with jj
. avoid first j
appears delay, could utilize :autocmds
toggle 'timeoutlen'
value:
:autocmd insertenter * set timeoutlen=200 :autocmd insertleave * set timeoutlen=1000
vim
Comments
Post a Comment