Skip to content

Instantly share code, notes, and snippets.

@davidanton1d
Last active February 10, 2017 06:20
Show Gist options
  • Save davidanton1d/e2cee6b9d3d0ba14e6bf92ed7d5a26b8 to your computer and use it in GitHub Desktop.
Save davidanton1d/e2cee6b9d3d0ba14e6bf92ed7d5a26b8 to your computer and use it in GitHub Desktop.
Sublime key bindings
[
{ "keys": ["ctrl+shift+o"], "command": "prompt_open_folder" },
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" },
{ "keys": ["ctrl+pagedown"], "command": "next_view_in_stack" },
{ "keys": ["ctrl+pageup"], "command": "prev_view_in_stack" },
{ "keys": ["ctrl+shift+o"], "command": "prompt_open_folder" },
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" },
{ "keys": ["ctrl+pagedown"], "command": "next_view_in_stack" },
{ "keys": ["ctrl+pageup"], "command": "prev_view_in_stack" },
{"keys": ["ctrl+shift+g"], "command": "toggle_setting", "args": {"setting": "vintage_lines.force_mode"}},
{ "keys": ["ctrl+h"], "command": "show_panel", "args": {"panel": "replace", "reverse": false} },
//
// Emacs Motion commands: forward/backward word, identifiers (sexpression), beginning/end of file/window
//
{"keys": ["ctrl+b"], "command": "move", "args": {"by": "characters", "forward": false} },
{"keys": ["ctrl+f"], "command": "move", "args": {"by": "characters", "forward": true} },
{"keys": ["ctrl+shift+b"], "command": "move", "args": {"by": "characters", "forward": false, "extend": true} },
{"keys": ["ctrl+shift+f"], "command": "move", "args": {"by": "characters", "forward": true, "extend": true} },
{"keys": ["ctrl+p"], "command": "move", "args": {"by": "lines", "forward": false} },
{"keys": ["ctrl+n"], "command": "move", "args": {"by": "lines", "forward": true} },
{"keys": ["ctrl+shift+p"], "command": "move", "args": {"by": "lines", "forward": false, "extend": true} },
{"keys": ["ctrl+shift+n"], "command": "move", "args": {"by": "lines", "forward": true, "extend": true} },
// new commands for the ones replaced by emacs navigation
{ "keys": ["ctrl+alt+p"], "command": "show_overlay", "args": {"overlay": "command_palette"} },
{ "keys": ["ctrl+k", "ctrl+n"], "command": "new_file" }, //ctrl+n
{ "keys": ["ctrl+t"], "command": "new_file" }, //ctrl+n
{ "keys": ["ctrl+alt+f"], "command": "show_panel", "args": {"panel": "find_in_files"} }, //ctrl+shift+f
{ "keys": ["ctrl+o"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} }, //ctrl+p
{ "keys": ["ctrl+a"], "command": "select_all" },
{ "keys": ["ctrl+e"], "command": "select_all" },
{ "keys": ["ctrl+a"], "command": "move_to", "args": {"to": "bol", "extend": false} },
{ "keys": ["ctrl+e"], "command": "move_to", "args": {"to": "eol", "extend": false} },
{ "keys": ["shift+ctrl+a"], "command": "move_to", "args": {"to": "bol", "extend": true} },
{ "keys": ["shift+ctrl+e"], "command": "move_to", "args": {"to": "eol", "extend": true} },
{ "keys": ["ctrl+alt+a"], "command": "move_to", "args": {"to": "bof", "extend": false} },
{ "keys": ["ctrl+alt+e"], "command": "move_to", "args": {"to": "eof", "extend": false} },
{ "keys": ["ctrl+shift+alt+a"], "command": "move_to", "args": {"to": "bof", "extend": true} },
{ "keys": ["ctrl+shift+alt+e"], "command": "move_to", "args": {"to": "eof", "extend": true} },
{ "keys": ["ctrl+k", "ctrl+a"], "command": "select_all" },
{ "keys": ["ctrl+alt+w"], "command": "toggle_setting", "args": {"setting": "word_wrap"}}
]
{
"always_show_minimap_viewport": true,
"auto_complete_commit_on_tab": true,
"auto_complete_cycle": true,
"color_scheme": "Packages/One Dark Material - Theme/schemes/OneDark.tmTheme",
"draw_centered": true,
"draw_minimap_border": true,
"draw_white_space": "selection",
"enable_tab_scrolling": false,
"find_selected_text": false,
"font_size": 13,
"highlight_modified_tabs": true,
"ignored_packages":
[
],
"indent_to_bracket": true,
"save_on_focus_lost": false,
"shift_tab_unindent": true,
"show_line_endings": true,
"trim_trailing_white_space_on_save": false,
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
"CVS",
"uploads"
],
"font_size": 12,
"ignored_packages":
[
"Vintage"
],
// *** From github repo ***
// Adds whitespace up to the first open bracket when indenting. Requires
// auto_indent to be enabled.
"indent_to_bracket": true,
// Set to true to draw a border around the visible rectangle on the minimap.
// The color of the border will be determined by the "minimapBorder" key in
// the color scheme
"draw_minimap_border": false,
// Always visualise the viewport on the minimap, as opposed to only
// showing it on mouse over
"always_show_minimap_viewport": true,
// Draws text centered in the window rather than left aligned
"draw_centered": true,
// Set to "none" to turn off drawing white space, "selection" to draw only the
// white space within the selection, and "all" to draw all white space
"draw_white_space": "selection",
// Set to true to removing trailing white space on save
"trim_trailing_white_space_on_save": false,
// Set to true to automatically save files when switching to a different file
// or application
"save_on_focus_lost": false,
// By default, auto complete will commit the current completion on enter.
// This setting can be used to make it complete on tab instead.
// Completing on tab is generally a superior option, as it removes
// ambiguity between committing the completion and inserting a newline.
"auto_complete_commit_on_tab": true,
// Controls what happens when pressing the up key while the first item in
// the auto complete window is selected: if false, the window is hidden,
// otherwise the last item in the window is selected. Likewise for the
// down key when the last item is selected.
"auto_complete_cycle": true,
// By default, shift+tab will only unindent if the selection spans
// multiple lines. When pressing shift+tab at other times, it'll insert a
// tab character - this allows tabs to be inserted when tab_completion is
// enabled. Set this to true to make shift+tab always unindent, instead of
// inserting tabs.
"shift_tab_unindent": true,
// If true, the selected text will be copied into the find panel when it's
// shown.
// On OS X, this value is overridden in the platform specific settings, so
// you'll need to place this line in your user settings to override it.
"find_selected_text": false,
// Makes tabs with modified files more visible
"highlight_modified_tabs": true,
// Allows tabs to scroll left and right, instead of simply shrinking
"enable_tab_scrolling": false,
// Display file encoding in the status bar
"show_encoding": true,
// Display line endings in the status bar
"show_line_endings": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment