GNU Screen makes Vim ESC key slow

gnu-screenvim

Screen makes my ESC key wait for more commands I believe, and if it does not get those commands, it sends it to my terminal session (which I am running VIM in). ESC is used a lot in VIM and currently I do not make any use of the ESC key in Screen.

How would I go about changing the timeout?

I have read that these commands below inside of .screenrc should fix it, but it doesn't seem to be working for me:

maptimeout 0
defc1 off

Best Answer

Here is a post I found on VIM Wikia that shows how to fix most GNU screen/VIM integration problems.

Correct command is maptimeout 5

This may be necessary so Screen will wait no more than 5 milliseconds between characters when detecting an input sequence.

Related Question