cohama / lexima.vim

Auto close parentheses and repeat by dot dot dot...
1.01k stars 46 forks source link

unexpected behavior after pressing ESC #64

Closed atsepkov closed 2 years ago

atsepkov commented 7 years ago

If I press a key within a second of pressing ESC, that key usually interacts with the text I input in some undesirable way.

For example, using arrow keys inserts something like A or D at the line above the cursor. Using h,j,k,l re-enters insert mode and inserts the character at the cursor location.

cohama commented 7 years ago

I can not reproduce that.

Please report

avleen commented 7 years ago

I just installed this plugin and also get this behavior. ViM 7.4.160

It seems like if you press ESC and then quickly press an arrow key, this happens. But if you wait about half a second, ViM leaves insert mode, and then things are OK.

unphased commented 5 years ago

Usually this type of sticky Esc issue is caused by a bind existing in vim that includes an escape. Improperly bound alt keystroke sequences will often do this.

A related but different issue is when vim must respond to escape key codes but provides too much time to receive the rest of it.

check your ttimeoutlen value...

http://www.polarhome.com/vim/manual/v57/options.html#'timeoutlen'

cohama commented 5 years ago

It would be caused not only vim but also shell or terminal. Please check the post. https://www.johnhawthorn.com/2012/09/vi-escape-delays/