Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can reduce the lag of using <Esc> with:

    set timeout timeoutlen=1000 ttimeoutlen=10


Very cool trick, thanks for sharing. Is there any reason I wouldn't want this?


Arrow and function keys are mapped to escape sequences, so if you use vi over a slow or unreliable connection your arrow keys could randomly get interpreted as escape followed by some commands.


timeoutlen is also used by leader key combos, and things like gg, fx, etc. If you drop your timeoutlen, make sure you can still combo these fast enough for them to register.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: