Skip to content

Instantly share code, notes, and snippets.

@Realetive
Created January 5, 2018 01:15
Show Gist options
  • Save Realetive/23be0c9c7a8291e760e28627928c6b12 to your computer and use it in GitHub Desktop.
Save Realetive/23be0c9c7a8291e760e28627928c6b12 to your computer and use it in GitHub Desktop.
Как установить https://github.com/lyokha/vim-xkbswitch с Раскладкой Бирмана
# 1. Установить xkbswitch
git clone git@github.com:myshov/xkbswitch-macosx.git ~/.vim/plugin/xkbswitch-macosx
ln -s ~/.vim/plugin/xkbswitch-macosx/bin/xkbswitch /usr/local/bin/xkbswitch
# 2. Установить библиотеку-обёртку
git clone git@github.com:myshov/libxkbswitch-macosx.git ~/.vim/plugin/libxkbswitch-macosx
ln -s ~/.vim/plugin/libxkbswitch-macosx/bin/libxkbswitch.dylib /usr/local/lib/libxkbswitch.dylib
@Realetive
Copy link
Author

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"
"  XkbSwitchLib
"
let g:XkbSwitchEnabled=1
" Set keymaps dynamically in runtime
let g:XkbSwitchDynamicKeymap=1
" https://github.com/vovkasm/input-source-switcher
let g:XkbSwitchLib='/usr/local/lib/libxkbswitch.dylib'
let g:XkbSwitchIMappings=['1']
let g:XkbSwitchIMappingsTr={
          \ '1':
          \ {'<': 'qwertyuiop[]\asdfghjkl;''zxcvbnm,./'.
          \       'QWERTYUIOP{}|ASDFGHJKL:"ZXCVBNM<>?',
          \  '>': 'йцукенгшщзхъ\фывапролджэячсмитьбю.'.
          \       'ЙЦУКЕНГШЩЗХЪ/ФЫВАПРОЛДЖЭЯЧСМИТЬБЮ,'}
          \ }
let g:XkbSwitchKeymapNames={'1': 'ru', '2': 'en'}
let g:XkbSwitchNLayout = '2'

" let g:XkbSwitchLib='/usr/local/lib/libInputSourceSwitcher.dylib'
" let g:XkbSwitchIMappings=['org.sil.ukelele.keyboardlayout.t.keylayout.Russian-IlyaBirmanTypography']
" let g:XkbSwitchIMappingsTr={
"           \ 'org.sil.ukelele.keyboardlayout.t.keylayout.Russian-IlyaBirmanTypography':
"           \ {'<': 'qwertyuiop[]\asdfghjkl;''zxcvbnm,./'.
"           \       'QWERTYUIOP{}|ASDFGHJKL:"ZXCVBNM<>?',
"           \  '>': 'йцукенгшщзхъ\фывапролджэячсмитьбю.'.
"           \       'ЙЦУКЕНГШЩЗХЪ/ФЫВАПРОЛДЖЭЯЧСМИТЬБЮ,'}
"           \ }
" let g:XkbSwitchKeymapNames={'org.sil.ukelele.keyboardlayout.t.keylayout.Russian-IlyaBirmanTypography' : 'ru_keymap', 'org.sil.ukelele.keyboardlayout.t.keylayout.English-IlyaBirmanTypography' : 'uk_keymap'}

"
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment