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

php - How to pass multiple values from url -

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

database - php search bar when I press submit with nothing in the search bar it shows all the data -