Skip to content

Instantly share code, notes, and snippets.

@Chun-Yang
Created May 29, 2014 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chun-Yang/d7fe1f7e3ed97af4824b to your computer and use it in GitHub Desktop.
Save Chun-Yang/d7fe1f7e3ed97af4824b to your computer and use it in GitHub Desktop.
sublime keymap windows
[
// -------------------------------------------------------------------------
// Auto-complete behaviour for ), ], '', ""
// Bind to <tab> to step over the auto-completed character(s)
// -------------------------------------------------------------------------
{ "keys": ["tab"], "command": "move", "args": {"by": "characters", "forward": true},
"context":
[
{ "key": "following_text", "operator": "regex_contains", "operand": "^[)\\]'\"]", "match_all": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "[(['\"]", "match_all": true },
{ "key": "auto_complete_visible", "operator": "equal", "operand": false }
]
},
// automatic indentation
{ "keys": ["ctrl+i"], "command": "reindent" },
// auto save
{ "keys": ["ctrl+shift+s"], "command": "auto_save" },
// open folder
{ "keys": ["ctrl+shift+o"], "command": "prompt_open_folder" },
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment