いつも iTerm2 で MacVim-Kaoriya 内の Vim を使って作業をしているが、<C-^> での IM 切替が出来ない関係で im_control の日本語入力固定モードが使えていなかった。 IMCtrl を設定することで、何とか動いたのでメモ(.gvimrc での noimdisableactivate 設定は割愛) if has('mac') if has('gui_running') let IM_CtrlMode = 4 else let IM_CtrlMode = 1 function! IMCtrl(cmd) let cmd = a:cmd if cmd == 'On' let res = system('osascript -e "tell application \"System Events\" to keystroke (key code {104})"
![iTerm2 + Vim (MacVim-Kaoriya) + im_control で日本語入力固定モード - Qiita](https://cdn-ak-scissors.b.st-hatena.com/image/square/d6b6652b504dcc7efd738a651f5ed277dab2b1b7/height=288;version=1;width=512/https%3A%2F%2Fqiita-user-contents.imgix.net%2Fhttps%253A%252F%252Fcdn.qiita.com%252Fassets%252Fpublic%252Farticle-ogp-background-9f5428127621718a910c8b63951390ad.png%3Fixlib%3Drb-4.0.0%26w%3D1200%26mark64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTkxNiZoPTMzNiZ0eHQ9aVRlcm0yJTIwJTJCJTIwVmltJTIwJTI4TWFjVmltLUthb3JpeWElMjklMjAlMkIlMjBpbV9jb250cm9sJTIwJUUzJTgxJUE3JUU2JTk3JUE1JUU2JTlDJUFDJUU4JUFBJTlFJUU1JTg1JUE1JUU1JThBJTlCJUU1JTlCJUJBJUU1JUFFJTlBJUUzJTgzJUEyJUUzJTgzJUJDJUUzJTgzJTg5JnR4dC1jb2xvcj0lMjMyMTIxMjEmdHh0LWZvbnQ9SGlyYWdpbm8lMjBTYW5zJTIwVzYmdHh0LXNpemU9NTYmdHh0LWNsaXA9ZWxsaXBzaXMmdHh0LWFsaWduPWxlZnQlMkN0b3Amcz1mOGJkZjk1OTBjNDc5ODlhMGJhYmE4ODEyYjlhODYwOQ%26mark-x%3D142%26mark-y%3D112%26blend64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTYxNiZ0eHQ9JTQwMm5vJnR4dC1jb2xvcj0lMjMyMTIxMjEmdHh0LWZvbnQ9SGlyYWdpbm8lMjBTYW5zJTIwVzYmdHh0LXNpemU9MzYmdHh0LWFsaWduPWxlZnQlMkN0b3Amcz04ODQzYWVkZjY5NjUyMDJlMDBkOTJhNjk1MjM3NjI1Yg%26blend-x%3D142%26blend-y%3D491%26blend-mode%3Dnormal%26s%3Dc919f30cc53bcc4bce90009d2c5b34a0)