evindor / vim-rusmode

Bind pressing russian key in normal mode to toggle layout and repeat same key.
http://www.vim.org/scripts/script.php?script_id=4493
18 stars 2 forks source link

InsertLeave not working #9

Open Somelauw opened 9 years ago

Somelauw commented 9 years ago

I tried setting it to both 0 and 1:

let g:rusmode_autotoggle_insertleave=0

But it didn't seem to make a difference. I disabled your plugin and I tried a simpler solution instead:

autocmd InsertLeave * :!setxkbmap -model pc105 -layout us,ru -variant ,ownvariant -option grp:caps_toggle

But this didn't work for me, because executing this command again when using the ru layout, doesn't reset the keyboard to the default us layout.