Skip to content

Instantly share code, notes, and snippets.

@rbf
Created November 17, 2013 11:49
Show Gist options
  • Save rbf/7512390 to your computer and use it in GitHub Desktop.
Save rbf/7512390 to your computer and use it in GitHub Desktop.
My current settings for Sublime Text 2. Files to be placed in `~/Library/Application\ Support/Sublime\ Text\ 2/Packages/User/`.
[
{ "keys": ["ctrl+shift+j"], "command": "prettify_json" },
{ "keys": ["super+shift+c"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["super+alt+shift+c"], "command": "toggle_comment", "args": { "block": true } },
{ "keys": ["super+alt+p"], "command": "goto_open_file", "args": {"active_group": false}},
{ "keys": ["super+k", "super+p"], "command": "prompt_select_project" },
{ "keys": ["super+k", "super+o"], "command": "goto_open_file", "args": {"active_group": false}},
{ "keys": ["super+k", "super+m"], "command": "toggle_minimap" },
{ "keys": ["super+k", "super+t"], "command": "toggle_tabs" },
{ "keys": ["super+k", "super+l"], "command": "toggle_setting", "args": {"setting": "line_numbers"}},
{ "keys": ["super+k", "super+g"], "command": "toggle_setting", "args": {"setting": "gutter"}},
{ "keys": ["super+k", "super+s"], "command": "toggle_status_bar"},
{ "keys": ["super+k", "super+c"], "command": "show_panel", "args": {"panel": "console", "toggle": true}},
{ "keys": ["super+0"], "command": "reindent"},
// Override keybindings for TODO plugin when Vintage is activated
{
"keys": ["down"], "command": "navigate_results",
"context": [
// {"key": "setting.command_mode", "operand": true}
{"key": "setting.todo_results"}
],
"args": {"direction": "forward"}
},
{
"keys": ["up"], "command": "navigate_results",
"context": [
// {"key": "setting.command_mode", "operand": true}
{"key": "setting.todo_results"}
],
"args": {"direction": "backward"}
},
{
"keys": ["enter"], "command": "goto_comment",
"context": [
// {"key": "setting.command_mode", "operand": true}
{"key": "setting.todo_results"}
]
},
// Override keybindings for SublimeREPL
{ "keys": ["super+k", "super+r"], "command": "repl_transfer_current", "args": {"scope": "selection"}},
{ "keys": ["super+k", "super+k"], "command": "select_color_scheme", "args": {"direction": "next"}},
{ "keys": ["super+shift+k"], "command": "select_color_scheme", "args": {"direction": "next"}},
{ "keys": ["ctrl+shift+l"], "command": "run_macro_file", "args": {"file": "Packages/User/Generate link from section title.sublime-macro"} },
// Color Picker
{ "keys": ["ctrl+shift+c"], "command": "color_pick" },
// https://github.com/SublimeText/TrailingSpaces
{ "keys": ["ctrl+shift+t"], "command": "delete_trailing_spaces" },
{ "keys": ["super+k", "ctrl+shift+t"], "command": "toggle_trailing_spaces" }
]
{
"auto_complete_commit_on_tab": true,
"auto_complete_delay": 250,
"color_scheme": "Packages/User/Soda Dark - Monokai.tmTheme",
"font_size": 13.0,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
"SublimeBlockCursor",
"Vintage"
],
"scroll_past_end": true,
"theme": "Soda Dark.sublime-theme",
"todo":
{
"case_sensitive": true,
"file_exclude_patterns":
[
"*.swp"
],
"folder_exclude_patterns":
[
"target",
"tmp"
],
"patterns":
{
"BUG": "BUG[\\s]*?:+(?P<bug>.*)$",
"WIP": "WIP[\\s]*?:+(?P<wip>.*)$"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment