LoginSignup
4
4

More than 5 years have passed since last update.

Sublime Text 3 Key Bindings

Last updated at Posted at 2014-04-13

Default

// 次の行をコメントアウト(F7でカナ変換できるように)
// { "keys": ["f7"], "command": "build" },

// 次の行をコメントアウト(日本語変換中のタブ選択許可)
// { "keys": ["tab"], "command": "insert_best_completion", "args": {"default": "\t", "exact": true} },
// { "keys": ["tab"], "command": "insert_best_completion", "args": {"default": "\t", "exact": false},
//  "context":
//  [
//      { "key": "setting.tab_completion", "operator": "equal", "operand": true }
//  ]
// },

User

[
    // WindowsでなぜかVintageモードで右キーが効かない
    {
        "keys": ["right"],
        "command": "move",
        "args": {"by": "characters", "forward" : true},
        "context":
        [
            { "key": "vi_command_mode_aware"}
        ]
    },
    // ctrl+l * 2でエスケープ
    {
        "keys": ["ctrl+l", "ctrl+l"],
        "command": "press_key",
        "args": {"key": "<esc>"}
    },
    {
        // [ でHOME
        "keys" : ["["],
        "command" : "press_key",
        "args" :
        {
            "key" : "<home>"
        },
        "context" :
        [
            {
                "key": "vi_command_mode_aware",
                "operand": true
            }
        ]
    },
    {
        // ] でEND
        "keys" : ["]"],
        "command" : "press_key",
        "args" :
        {
            "key" : "<end>"
        },
        "context" :
        [
            {
                "key": "vi_command_mode_aware",
                "operand": true
            }
        ]
    },
    {
        "keys": ["ctrl+j"],
        "command": "auto_complete",
        "context":
        [
            {
                "key": "auto_complete_visible",
                "operator": "equal",
                "operand": true
            }
        ]
    },
    {
        "keys": ["ctrl+k"],
        "command": "auto_complete_prev",
        "context":
        [
            {
                "key": "auto_complete_visible",
                "operator": "equal",
                "operand": true
            }
        ]
    }
]
4
4
0

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
4
4