{"action":"created","issue":{"url":"https://api.github.com/repos/vim-jp/issues/issues/739","labels_url":"https://api.github.com/repos/vim-jp/issues/issues/739/labels{/name}","comments_url":"https://api.github.com/repos/vim-jp/issues/issues/739/comments","events_url":"https://api.github.com/repos/vim-jp/issues/issues/739/events","html_url":"https://github.com/vim-jp/issues/issues/739","id":88094256,"number":739,"title":"Linux上で入力時にしかCursorIMのハイライトに変わらない","user":{"login":"crazymaster","id":1528093,"avatar_url":"https://avatars.githubusercontent.com/u/1528093?v=3","gravatar_id":"","url":"https://api.github.com/users/crazymaster","html_url":"https://github.com/crazymaster","followers_url":"https://api.github.com/users/crazymaster/followers","following_url":"https://api.github.com/users/crazymaster/following{/other_user}","gists_url":"https://api.github.com/users/crazymaster/gists{/gist_id}","starred_url":"https://api.github.com/users/crazymaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crazymaster/subscriptions","organizations_url":"https://api.github.com/users/crazymaster/orgs","repos_url":"https://api.github.com/users/crazymaster/repos","events_url":"https://api.github.com/users/crazymaster/events{/privacy}","received_events_url":"https://api.github.com/users/crazymaster/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vim-jp/issues/labels/kind/bug","name":"kind/bug","color":"e10c02"},{"url":"https://api.github.com/repos/vim-jp/issues/labels/related/linux","name":"related/linux","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-14T01:05:43Z","updated_at":"2015-06-15T00:39:33Z","closed_at":null,"body":"```vim\r\nif has('multi_byte_ime') || has('xim')\r\n  highlight Cursor guifg=NONE guibg=Green\r\n  highlight CursorIM guifg=NONE guibg=Purple\r\nendif\r\n```\r\n\r\nWindowsではIMEをオンにすると紫色(CursorIM)に変化しますが、\r\nLinuxでは入力中(IMEをオンで)にしか紫色(CursorIM)に変わりません。\r\n\r\n## 環境\r\n* Vine6.3, Vim 7.3.206\r\n* Ubuntu 15.04, Vim 7.4.738\r\n\r\nどちらもGVim\r\n\r\n出典: 日本語入力時のカーソルの色 - Google グループ\r\n          https://groups.google.com/forum/#!topic/vim_jp/Y2LkEfaUk8k"},"comment":{"url":"https://api.github.com/repos/vim-jp/issues/issues/comments/111892303","html_url":"https://github.com/vim-jp/issues/issues/739#issuecomment-111892303","issue_url":"https://api.github.com/repos/vim-jp/issues/issues/739","id":111892303,"user":{"login":"mattn","id":10111,"avatar_url":"https://avatars.githubusercontent.com/u/10111?v=3","gravatar_id":"","url":"https://api.github.com/users/mattn","html_url":"https://github.com/mattn","followers_url":"https://api.github.com/users/mattn/followers","following_url":"https://api.github.com/users/mattn/following{/other_user}","gists_url":"https://api.github.com/users/mattn/gists{/gist_id}","starred_url":"https://api.github.com/users/mattn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattn/subscriptions","organizations_url":"https://api.github.com/users/mattn/orgs","repos_url":"https://api.github.com/users/mattn/repos","events_url":"https://api.github.com/users/mattn/events{/privacy}","received_events_url":"https://api.github.com/users/mattn/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T00:39:33Z","updated_at":"2015-06-15T00:39:33Z","body":"gtk を使ってる限り動かないんですよねー。imactivatekey\r\nimactivatekey は純粋な XIM を使っていて、デスクトップにキーイベントを送信したら反応する XIM しか動かない。\r\ngtk はキースヌーファーという機能を使ってキーを盗み取っているのでそもそも動かない。\r\nあと、IMがアクティブかどうかを知る方法ですが、SKK タイプの物だとタイプした文字が大文字の場合に初めてIMがアクティブになるので皆が期待している物でない可能性もあります。"}}