Skip to content

Instantly share code, notes, and snippets.

@tjventurini
Last active June 4, 2019 08:30
Show Gist options
  • Save tjventurini/307e3a8db5f3a1d8a6bce7c6c49668ac to your computer and use it in GitHub Desktop.
Save tjventurini/307e3a8db5f3a1d8a6bce7c6c49668ac to your computer and use it in GitHub Desktop.
Commands for Sublime Vintage Mode. Requires Chain of Commands Package.
[
{
"keys": ["j", "j"],
"command": "exit_insert_mode",
"context":
[
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operand": false }
]
},
{
"keys": ["k", "k"],
"command": "exit_insert_mode",
"context":
[
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operand": false }
]
},
{
"keys": ["ctrl+s"],
"command": "chain",
"args": {
"commands": [
["save"],
["exit_insert_mode"],
["sort_php_class_use_lines_by_length"]
]
}
},
{ "keys": ["ctrl+#"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+shift+#"], "command": "toggle_comment", "args": { "block": true } },
{ "keys": ["ctrl+u"], "command": "find_use" },
{ "keys": ["ctrl+e"], "command": "expand_fqcn","args": {"leading_separator": true}},
{
"keys": ["f5"],
"command": "chain",
"args": {
"commands": [
["build"],
["sort_php_class_use_lines_by_length"]
]
}
},
{ "keys": ["f7"], "command": "insert_php_constructor_property" },
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment