-
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
Keymap assistance in Normal mode not working #62
Comments
How do you expect it to work? Keymap assistance won't switch system keyboard layout. Instead, it relies on builtin Vim's let g:XkbSwitchAssistNKeymap = 1 " for commands r and f
let g:XkbSwitchDynamicKeymap = 1
let g:XkbSwitchKeymapNames =
\ {'ru' : 'russian-jcukenwin', 'de' : 'german-qwertz'}
" quickly toggle keyboard layout for f and r commands in normal mode
" (<C-^> also switches keyboard layout in search mode)
let g:XkbSwitchIminsertToggleKey = '<C-^>'
let g:XkbSwitchIminsertToggleEcho = 0 It works for me. Notice that there is mapping As to |
IMHO expected behaiviour the same as you described above. But when I press -- vim-xkbswitch
vim.g.XkbSwitchLib = '/usr/local/bin/libxkbswitch.dylib'
vim.g.XkbSwitchEnabled = 1
vim.g.XkbSwitchIMappings = { 'ru' }
vim.g.XkbSwitchAssistNKeymap = 1 -- for commands r and f
vim.g.XkbSwitchDynamicKeymap = 1
vim.g.XkbSwitchKeymapNames = {['ru'] = 'russian-jcukenwin', ['uk'] = 'ukrainian-jcuken'}
vim.g.XkbSwitchIminsertToggleEcho = 0 |
After you return from Insert mode with Russian layout to Normal mode, what command :echo b:xkb_layout says? Does it say |
E121: Undefined variable: b:xkb_layout |
I made a typo, I meant |
:echo b:xkb_ilayout: |
Values let g:XkbSwitchKeymapNames = {'1' : 'russian-jcukenwin'} |
Still the same behavior |
r
andf
commands not working with configuration from readme:XkbSwitchAssistNKeymap -> not working
XkbSwitchAssistSKeymap -> working, but have deprecation messages when vim started
tried with:
and
The text was updated successfully, but these errors were encountered: