{"action":"created","issue":{"url":"https://api.github.com/repos/evindor/vim-rusmode/issues/10","labels_url":"https://api.github.com/repos/evindor/vim-rusmode/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/evindor/vim-rusmode/issues/10/comments","events_url":"https://api.github.com/repos/evindor/vim-rusmode/issues/10/events","html_url":"https://github.com/evindor/vim-rusmode/issues/10","id":56164837,"number":10,"title":"Add support for keyboard layout variants","user":{"login":"Somelauw","id":923835,"avatar_url":"https://avatars.githubusercontent.com/u/923835?v=3","gravatar_id":"","url":"https://api.github.com/users/Somelauw","html_url":"https://github.com/Somelauw","followers_url":"https://api.github.com/users/Somelauw/followers","following_url":"https://api.github.com/users/Somelauw/following{/other_user}","gists_url":"https://api.github.com/users/Somelauw/gists{/gist_id}","starred_url":"https://api.github.com/users/Somelauw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Somelauw/subscriptions","organizations_url":"https://api.github.com/users/Somelauw/orgs","repos_url":"https://api.github.com/users/Somelauw/repos","events_url":"https://api.github.com/users/Somelauw/events{/privacy}","received_events_url":"https://api.github.com/users/Somelauw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-01T14:18:55Z","updated_at":"2015-02-02T05:49:42Z","closed_at":null,"body":"I'm not a native russian, so I use a phonetic layout.\r\n\r\nI tried configuring your plugin like this:\r\n\r\n    call vam#ActivateAddons([ 'vim-rusmode'], {'auto_install' : 0})\r\n        let g:rusmode_autotoggle_insertleave=0 'Setting it to 1, didn't seem to make a difference\r\n        let g:rusmode_get_layout_command = 'setxkbmap -print | grep xkb_symbols | awk \"{split($0,arr,\\\"+\\\")} END{print arr[2]}\"'\r\n        let g:rusmode_set_layout_command = 'setxkbmap -option \"grp:caps_toggle\" -layout \"us,ru\" -variant \",ownvariant\"'\r\n        let g:rusmode_normal_layout='us' \r\n\r\nHowever, when I press a key in Russian when using my own variant, it takes the position where that key would be in the \"JCUKEN\" layout and then inserts the key that would be at that location if I were using the US layout. Fixing this won't be easy, because right now you are directly mapping keys from JCUKEN to QWERTY."},"comment":{"url":"https://api.github.com/repos/evindor/vim-rusmode/issues/comments/72409306","html_url":"https://github.com/evindor/vim-rusmode/issues/10#issuecomment-72409306","issue_url":"https://api.github.com/repos/evindor/vim-rusmode/issues/10","id":72409306,"user":{"login":"evindor","id":822951,"avatar_url":"https://avatars.githubusercontent.com/u/822951?v=3","gravatar_id":"","url":"https://api.github.com/users/evindor","html_url":"https://github.com/evindor","followers_url":"https://api.github.com/users/evindor/followers","following_url":"https://api.github.com/users/evindor/following{/other_user}","gists_url":"https://api.github.com/users/evindor/gists{/gist_id}","starred_url":"https://api.github.com/users/evindor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evindor/subscriptions","organizations_url":"https://api.github.com/users/evindor/orgs","repos_url":"https://api.github.com/users/evindor/repos","events_url":"https://api.github.com/users/evindor/events{/privacy}","received_events_url":"https://api.github.com/users/evindor/received_events","type":"User","site_admin":false},"created_at":"2015-02-02T05:49:42Z","updated_at":"2015-02-02T05:49:42Z","body":"Yeah, I don't think there are any other ways than mapping keys directly. Or mapping them in a loop over layout keys array, essentially the same thing but with less typing.\r\n\r\nShouldn't be that hard to add another layout though, just boring :)"}}