lyokha / vim-xkbswitch

vim plugin for automatic keyboard layout switching in insert mode
MIT License
481 stars 23 forks source link

Time lag when switching to normal mode with russian layout #37

Closed CptnGreen closed 5 years ago

CptnGreen commented 5 years ago

When i switch to normal mode (by pressing esc) from insert mode with russian layout not switched to english there is a short but unpleasant time lag (about one second) before i can use normal mode command (not switching to english manually).

I use Ubuntu 18.04 LTS with i3-wm, PC: thinkpad yoga s1

lyokha commented 5 years ago

I never experienced that because I always used

set timeout timeoutlen=1000 ttimeoutlen=50

You can put it in your .vimrc. The key trick is setting small ttimeoutlen, i.e.

set ttimeoutlen=50

is enough to remove the time lag in your case. See :help ttimeout and :help ttimeoutlen.

I am going to add your case in the Troubleshooting section of README.

CptnGreen commented 5 years ago

Thank you for quick response! Now everything works fine