Recently, I’ve been using it inside
screen, a great utility for multi-tasking remotely. Unfortunately, whenever pressing escape to leave insert vim’s mode, there is a sizeable 300ms delay during which pressing another key (such as
: to enter the
write command) causes a rubbish character to be inserted.
This can be fixed through use of a suitable
.screenrc file, such as the one below:
# Don't wait for further input when escape is pressed maptimeout 1 # Use the 256 color terminal term screen-256color
Update 2015-11-03 - Term should be screen-256color, not xterm-256color. The latter breaks home and end keys.