
Vim and keyboard layout switching

The history of the plugin development from my side can be seen here , from the side of Alexei here and here .
The plugin uses platform-specific libraries to change layout using the operating system. Currently supported:
- UNIX / X Server through the xkb-switch library
- Windows 32 / 64bit, for which I had to make my bike
- Mac OS X via Xkbswitch-macosx
So in addition to directly installing the plugin in Vim, you need to download these libraries and specify in the Vim config where to download these libraries from. For example, under Windows, working functionality can be obtained like this:
- Download and install the plugin: from here or from here
- Download the language switching library (binary files for 32-bit and 64-bit , about 5kb) and copy it to the root directory of vima
- Add the following lines to vimrc:
let g:XkbSwitchEnabled = 1 let g:XkbSwitchIMappings = ['ru']
We are approaching another interesting feature of the plugin - adding localized hot keys. For example, if I press in edit mode
By default, only Russian language mappings are supported out of the box. However, the plugin can load language maps from a file, which allows creating localized imapes for any language. Under Windows, this can help make charmapgen .
If you want to get a working plugin for another OS, then you need to make a Vim-compatible library.Who have a desire and opportunity - write in a personal.