vim-rusmode
vim-rusmode copied to clipboard
Linux
Сделать плагин рабочим в линуксе.
There is no single “Linux” that you can add support for. I know at least four ways or programms that are able to switch keyboard layout, and users of them won’t like you for breaking what they have. Thus the only good thing you can do is to
- Take command name and arguments from a user-overridable option. Maybe create some shortcuts like if
g:switcher_typeis defined switcher command is taken from a dictionary, otherwise it first tries to take command string fromg:switcher_commandand then use default switcher. - Add to documentation a list of ways to switch keyboard layouts on linux from command-line (duplicates data from the dictionary, but also holds some tips that make users able to detect which one they need exactly).
- It would be hard, but default switcher may use some heuristics.
And add support for different keymappings, us and ru layouts are not the only ones for both languages.