-
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
Switch layout when in normal mode #54
Comments
Hi.
Do you mean that Vim would alter some state after triggering system keyboard layout switch? If so, then no: system keyboard layout change cannot be caught inside Vim as it is only caught by the desktop environment.
What kind of key maps do you mean? The plugin does not affect Vim's Normal mode maps in any way, it only may load the Insert mode maps (i.e. imaps) which have no effects in Normal mode. |
For example, let's suppose that you need to edit multilingual text like that:
You have left the insert mode when you were writing the Russian text, you are at the end of the line and need to jump to the beginning of the word The idea is to avoid that "enter insert mode - exit insert mode" sequence. Would you please recommend how to do that? |
Ok, this looks like an effect of the Keymap assistance in Normal mode. Removing let g:XkbSwitchAssistNKeymap = 1
let g:XkbSwitchDynamicKeymap = 1 from the Vim's config file should fix this. Or, if you still want to use the keymap assistance, you may reset
(you can also define a map for this in Normal mode, notice also that the language in the search line can be switched easily by Btw while digging through this issue I found a small bug: when |
Thanks for the advice!
Thank you so much! |
the bug was found while investigating issue #54
@coordinatio, |
First, thank you for the great plugin! It is the real life-changer when you need to edit multilingual text.
I wonder, is there a way to switch layout when in normal mode? Occasionally, I realize that I need to switch all key maps to another language when in normal mode. Now I enter insert mode, switch the layout and then switch back to the normal mode. That sequence is time-consuming. Is it possible to replace that sequence above by a key combination somehow?
The text was updated successfully, but these errors were encountered: