LoginSignup
1
2

More than 5 years have passed since last update.

全角入力のままノーマルモードに戻ってもすぐコマンド打てるよ: Vim

Posted at

目的

何が何でも全角入力してノーマルモードに戻っても、IMEを切り替えるコマンドを押さずにすぐコマンド打ちたい

設定ファイル

FromEscapeToJapanese_eisuu.json
{
  "title": "Terminal等でESCあるいは^[で日本語入力を英数に",
  "rules": [
    {
      "description": "TerminalまたはMacVimでESCあるいは^[を押したときに日本語入力を英数に切り替える。",
      "manipulators": [
        {
          "type": "basic",
          "from": { "key_code": "escape", "modifiers": { "optional": [ "any" ] } },
          "to": [ { "key_code": "japanese_eisuu" }, { "key_code": "escape" } ],
          "conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "^com\\.apple\\.Terminal$", "^org\\.vim\\.", "^com\\.googlecode\\.iterm2$" ] } ]
        },
        {
          "type": "basic",
          "from": { "key_code": "close_bracket", "modifiers": { "mandatory": ["left_control"] } },
          "to": [ { "key_code": "japanese_eisuu" }, { "key_code": "escape" } ],
          "conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "^com\\.apple\\.Terminal$", "^org\\.vim\\.", "^com\\.googlecode\\.iterm2$" ] } ]
        }
      ]
    }
  ]
}

手順

まずこれに沿ってください
しかし、リンク先の設定ファイルのままだと最新は動かなかったので、設定ファイルは上記のをコピペしてください
それだけです
https://qiita.com/takaeda/items/38ecf7d98d1a3ef99ef0

最後に

Karabinerよ、よくSierraにも対応してくれた。。。。!!!

1
2
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2