I recently came across the timeout and ttimeout features in vim.
I use the key sequence jk to escape from insert to normal mode. I thought, following this article Mapping fast keycodes [see 2b], that i could have my jk seqence obey the ttimeoutlen while all my other mappings obey timeoutlen. This would be ideal because i can hit jk really fast when i want to so it wouldnt interupt my typing when i need to insert a jk into a document.
However, following the above mentioned article, it didnt work for me. I went
:set timeout timeoutlen=1000 ttimeoutlen=100 :set <F13>=jk :map <F13> <esc> :map! <F13> <esc>
and pressing j in insert mode gives a delay determined by my timeoutlen, not my ttimeoutlen.
What am i doing wrong? Is it even possible? Is it only possible for escape sequences? If so why? Thank you!