News for hackers. Stuff that matters.
Re:Vim's 400 line function to wait for keyboard input by nothrabannosir on Wednesday July 15, 2015 @04:47PM (#9893987)
When I press ESC, it takes a while to register, and for the UI (e.g. the little "command in progress" buffer bottom right) to reflect this. CTRL+C doesn't suffer this problem, and is almost functionally interchangeable, so I've retrained myself to use that, now.

This is a bug, if you ask me. Or is that impossible for vim to fix?

Re:Vim's 400 line function to wait for keyboard input by nanofortnight on Wednesday July 15, 2015 @05:04PM (#9894073)
This is not a bug in vim. This is because Esc was historically used as a Meta key in lieu of the modern use of Alt.

For example, if you use tmux, add the following to .tmux.conf:

    set -s escape-time 0
Other terminal multiplexors and emulators have different commands for this.

Edit: There are a few other possible issues you are having: http://www.johnhawthorn.com/2012/09/vi-escape-delays/

Re:Vim's 400 line function to wait for keyboard input by hkmix on Wednesday July 15, 2015 @07:40PM (#9894718)
In vim, set separate timeout and ttimeout values to get around this. Specifically, set the former high fit regular commands and the latter low to avoid issues like slow Esc processing.