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

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -