The plug-in uses platform-dependent libraries to change the layout of the operating system. Currently supported are:
First, you need to install the plugin into Vim. Then you need to download these libraries and specify in the Vim config, where to download these libraries. For example, under Windows you need to do this:
let g:XkbSwitchEnabled = 1
let g:XkbSwitchIMappings = ['ru']
We are approaching another interesting feature of the plugin - adding localized hotkeys. For example, if I press <C-N> v
in the edit mode, I will see NerdTree. But if I edit the text in Russian, <C-N> м
will be pressed and the plug-in will not start. However, if the plug-in option “g: XkbSwitchIMappings” is enabled, then the plug-in will move all the editing mode mappings to create similar localized ones, i.e. Will add <C-N> м
for me.
By default, only the Russian language is supported from the box. However, the plugin can load language maps from a file, which will create localized imaps for any language. The charmapgen utility can help to do this under Windows.
If you want to get a working plug-in for another OS, then you need to make a Vim-compatible library.
ARTICLES
articles linux windows mac os x vim keyboard
Leave a comment