Skip to content

Instantly share code, notes, and snippets.

@dremendes
Created February 25, 2015 14:13
Show Gist options
  • Save dremendes/1da40ef5e1edc6e4ce1f to your computer and use it in GitHub Desktop.
Save dremendes/1da40ef5e1edc6e4ce1f to your computer and use it in GitHub Desktop.
Some keybindings I use
[
{
"args":
{
"characters": "/**"
},
"command": "insert"
},
{
"args":
{
"characters": "\n*/"
},
"command": "insert"
},
{
"args":
{
"by": "lines",
"forward": false
},
"command": "move"
},
{
"args":
{
"extend": false,
"to": "eol"
},
"command": "move_to"
},
{
"args":
{
"characters": "\nimportan"
},
"command": "insert"
},
{
"args":
{
"characters": "te"
},
"command": "insert"
},
{
"args":
{
"by": "lines",
"forward": true
},
"command": "move"
}
]
[
{
"args":
{
"characters": "init"
},
"command": "insert"
},
{
"args": null,
"command": "left_delete"
},
{
"args":
{
"characters": "_set"
},
"command": "insert"
},
{
"args":
{
"contents": "($0)"
},
"command": "insert_snippet"
},
{
"args":
{
"contents": "\"$0\""
},
"command": "insert_snippet"
},
{
"args":
{
"characters": "display"
},
"command": "insert"
},
{
"args":
{
"characters": "_errors"
},
"command": "insert"
},
{
"args": null,
"command": "expand_abbreviation_by_tab"
},
{
"args": null,
"command": "left_delete"
},
{
"args":
{
"by": "characters",
"forward": true
},
"command": "move"
},
{
"args":
{
"characters": ",1"
},
"command": "insert"
},
{
"args":
{
"extend": false,
"to": "eol"
},
"command": "move_to"
},
{
"args":
{
"characters": ";"
},
"command": "insert"
},
{
"args":
{
"extend": false,
"to": "bol"
},
"command": "move_to"
},
{
"args":
{
"characters": "\n"
},
"command": "insert"
},
{
"args":
{
"extend": false,
"to": "eol"
},
"command": "move_to"
},
{
"args":
{
"characters": "\n"
},
"command": "insert"
},
{
"args":
{
"by": "lines",
"forward": false
},
"command": "move"
},
{
"args":
{
"extend": false,
"to": "eol"
},
"command": "move_to"
}
]
[
{ "keys": ["ctrl+t"], "command": "phpunit_run_tests" },
{ "keys": ["ctrl+shift+."], "command": "phpunit_run_all_tests" },
{ "keys": ["ctrl+shift+,"], "command": "phpunit_open_class_being_tested" },
{ "keys": ["ctrl+shift+1"], "command": "run_macro_file", "args": {"file": "res://Packages/User/var_dump.sublime-macro"} },
{ "keys": ["ctrl+shift+2"], "command": "run_macro_file", "args": {"file": "res://Packages/User/ini_set.sublime-macro"} },
{ "keys": ["ctrl+shift+3"], "command": "run_macro_file", "args": {"file": "res://Packages/User/importante.sublime-macro"} },
{ "keys": ["ctrl+shift+["], "command": "bh_key", "args": { "no_outside_adj": true, "lines" : true, "plugin": { "type": ["__all__"], "command": "bh_modules.bracketselect", "args": {"select": "left"} }}},
{ "keys": ["ctrl+shift+]"], "command": "bh_key", "args": { "no_outside_adj": true, "lines" : true, "plugin": { "type": ["__all__"], "command": "bh_modules.bracketselect", "args": {"select": "right"} }}},
{ "keys": ["ctrl+shift+'"], "command": "toggle_setting", "args": {"setting": "word_wrap"}}
]
[
{
"args":
{
"characters": "echo"
},
"command": "insert"
},
{
"args":
{
"characters": " "
},
"command": "insert"
},
{
"args":
{
"contents": "'$0'"
},
"command": "insert_snippet"
},
{
"args":
{
"characters": "pre"
},
"command": "insert"
},
{
"args":
{
"by": "characters",
"forward": false
},
"command": "move"
},
{
"args":
{
"by": "characters",
"forward": false
},
"command": "move"
},
{
"args":
{
"by": "characters",
"forward": false
},
"command": "move"
},
{
"args":
{
"characters": "<"
},
"command": "insert"
},
{
"args":
{
"by": "characters",
"forward": true
},
"command": "move"
},
{
"args":
{
"by": "characters",
"forward": true
},
"command": "move"
},
{
"args":
{
"by": "characters",
"forward": true
},
"command": "move"
},
{
"args":
{
"characters": ">"
},
"command": "insert"
},
{
"args":
{
"extend": false,
"to": "eol"
},
"command": "move_to"
},
{
"args":
{
"characters": ";"
},
"command": "insert"
},
{
"args":
{
"characters": "\nechg"
},
"command": "insert"
},
{
"args": null,
"command": "left_delete"
},
{
"args":
{
"characters": "o"
},
"command": "insert"
},
{
"args":
{
"characters": " "
},
"command": "insert"
},
{
"args":
{
"contents": "'$0'"
},
"command": "insert_snippet"
},
{
"args":
{
"characters": "</pre>"
},
"command": "insert"
},
{
"args":
{
"extend": false,
"to": "eol"
},
"command": "move_to"
},
{
"args":
{
"characters": ";"
},
"command": "insert"
},
{
"args":
{
"by": "lines",
"forward": false
},
"command": "move"
},
{
"args":
{
"characters": "\nprint_"
},
"command": "insert"
},
{
"args":
{
"characters": "r"
},
"command": "insert"
},
{
"args":
{
"contents": "($0)"
},
"command": "insert_snippet"
},
{
"args":
{
"by": "characters",
"forward": false
},
"command": "move"
},
{
"args":
{
"by": "words",
"extend": true,
"forward": false
},
"command": "move"
},
{
"args":
{
"characters": "var"
},
"command": "insert"
},
{
"args":
{
"completion": "var_dump",
"snippet": "var_dump(${1:expression})",
"trigger": "var_dump"
},
"command": "insert_completion"
},
{
"args":
{
"extend": false,
"to": "eol"
},
"command": "move_to"
},
{
"args":
{
"extend": true,
"to": "bol"
},
"command": "move_to"
},
{
"args": null,
"command": "right_delete"
},
{
"args":
{
"characters": "var_dump"
},
"command": "insert"
},
{
"args":
{
"contents": "($0)"
},
"command": "insert_snippet"
},
{
"args":
{
"by": "characters",
"forward": true
},
"command": "move"
},
{
"args":
{
"by": "characters",
"forward": false
},
"command": "move"
},
{
"args":
{
"extend": false,
"to": "eol"
},
"command": "move_to"
},
{
"args":
{
"characters": ";"
},
"command": "insert"
},
{
"args":
{
"by": "characters",
"forward": false
},
"command": "move"
},
{
"args":
{
"by": "characters",
"forward": false
},
"command": "move"
},
{
"args":
{
"by": "lines",
"forward": true
},
"command": "move"
},
{
"args":
{
"extend": false,
"to": "eol"
},
"command": "move_to"
},
{
"args":
{
"characters": "exit"
},
"command": "insert"
},
{
"args":
{
"contents": "($0)"
},
"command": "insert_snippet"
},
{
"args":
{
"by": "characters",
"forward": true
},
"command": "move"
},
{
"args":
{
"characters": ";"
},
"command": "insert"
},
{
"args":
{
"by": "lines",
"forward": false
},
"command": "move"
},
{
"args":
{
"by": "characters",
"forward": false
},
"command": "move"
},
{
"args":
{
"by": "characters",
"forward": false
},
"command": "move"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment