Thursday, June 30, 2016 6:47 AM - Sylwester
Re: [SOLVED] Disable sending Meta Key sequence after ESC key
Thanks for your post!
Problem was that when I hit ESC and quickly afterwards another key it was treated as a combination not as a separate keystrokes.
When I was writing explanation of situation it struck me that the problem may be somewhere deeper than Xshell.
The problem was with tmux+vim combination. I'm so used to tmux that I forgot that it is there and may be interfering.
I've tried vim without tmux and problem wasn't there.
I found out with a bit of googlefu that tmux were treating ESC as meta key (actually meta key is send as esc-sequence) and was waiting for another key to combine it into esc-sequence.
To disable/change this behavior:
set -sg escape-time <value>
Default <value> is 500 ms. Setting it to 0 may cause some problems with different applications, so I've played around and set 40 ms.
set -sg escape-time 40