Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 947 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 947 Bytes

keymap2imaptr.vim

Translate Vim's language keymaps to vim-xkbswitch imap translation files.

Example:

$ vim -Nesn -u NONE -c 'set keymap=russian-jcukenwin' -S /path/to/keymap2imaptr.vim -c 'w! ru.tr' -cq
$ vim -Nesn -u NONE -c 'set keymap=german-qwertz' -S /path/to/keymap2imaptr.vim -c 'w! de.tr' -cq

After making the translation file, make sure that the written language tag such as ru or de corresponds to the system keyboard layout name.

Combine translation files if needed:

$ cat ru.tr de.tr > xkbswitch.tr
ru
< "#$&',./:;<>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^`abcdefghijklmnopqrstuvwxyz{}~
> Э№;?эбю.ЖжБЮ,"ФИСВУАПРШОЛДЬТЩЗЙКЫЕГМЦЧНЯхъ:ёфисвуапршолдьтщзйкыегмцчняХЪЁ
de
< "#&'()*+-/:;<>?@YZ[\]^_yz{|}~
> ħ/ä)=(`ß-Öö;:_"ZYü#+&?zyÜ'*°

Right-to-left script languages such as Hebrew or Arabic are not well supported.