-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cause lagging in vim #29
Comments
Try it this way (for terminal): vim --noplugin -c 'runtime plugin/xkbswitch.vim' Is it still bad? |
no, with just this plugin, work normally.
|
Try disable translation and Select mode mappings by putting in .vimrc lines let g:XkbSwitchIMappings = []
let g:XkbSwitchSkipGhKeys = ['gh', 'gH'] |
nope, didn't helped
|
I observed the same problem and found out that the reason was in sequence which was used for the arrow keys: https://stackoverflow.com/a/25111512/4177749 I just needed to switch back to the en_us layout in command mode without remembering current layout. So I have completely disabled the plugin solved the problem with this code in .vimrc:
The script checks current vim mode after 200 ms timeout and if it is "normal" - switches to en_us layout. Timeout helps to avoid switching layout on cursor movements. Thank you guys for the library and this plugin which helped me to find the solution. |
I used this plugin for a long time, but after I updated some other plugins, vim starts to lagging very hard(scrolling, moving cursor, etc). To research this problem, I turn off plugins one by one and it looks like xkbwitch cause of the problem. Don't know how updating of other plugins could break xkbswitch.
The text was updated successfully, but these errors were encountered: