Skip to content

Instantly share code, notes, and snippets.

@victor-falcon
Last active December 9, 2015 22:09
Show Gist options
  • Save victor-falcon/4335377 to your computer and use it in GitHub Desktop.
Save victor-falcon/4335377 to your computer and use it in GitHub Desktop.
Settings and Custom Keymap for Sublime Text 2
[
{ "keys": ["super+º"], "command": "sort_lines", "args": {"case_sensitive": false} },
{ "keys": ["alt+super+º"], "command": "sort_lines", "args": {"case_sensitive": true} },
// Set Layout
{
"keys": ["super+alt+1"],
"command": "set_layout",
"args":
{
"cols": [0.0, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1]]
}
},
{
"keys": ["super+alt+2"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.5, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
}
},
{
"keys": ["super+alt+3"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.33, 0.66, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1]]
}
},
{
"keys": ["super+alt+4"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.25, 0.5, 0.75, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1], [3, 0, 4, 1]]
}
},
{
"keys": ["super+alt+shift+2"],
"command": "set_layout",
"args":
{
"cols": [0.0, 1.0],
"rows": [0.0, 0.5, 1.0],
"cells": [[0, 0, 1, 1], [0, 1, 1, 2]]
}
},
{
"keys": ["super+alt+shift+3"],
"command": "set_layout",
"args":
{
"cols": [0.0, 1.0],
"rows": [0.0, 0.33, 0.66, 1.0],
"cells": [[0, 0, 1, 1], [0, 1, 1, 2], [0, 2, 1, 3]]
}
},
{
"keys": ["super+alt+5"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.5, 1.0],
"rows": [0.0, 0.5, 1.0],
"cells":
[
[0, 0, 1, 1], [1, 0, 2, 1],
[0, 1, 1, 2], [1, 1, 2, 2]
]
}
},
// Move to and focus
{ "keys": ["super+1"], "command": "focus_group", "args": { "group": 0 } },
{ "keys": ["super+2"], "command": "focus_group", "args": { "group": 1 } },
{ "keys": ["super+3"], "command": "focus_group", "args": { "group": 2 } },
{ "keys": ["super+4"], "command": "focus_group", "args": { "group": 3 } },
{ "keys": ["super+shift+1"], "command": "move_to_group", "args": { "group": 0 } },
{ "keys": ["super+shift+2"], "command": "move_to_group", "args": { "group": 1 } },
{ "keys": ["super+shift+3"], "command": "move_to_group", "args": { "group": 2 } },
{ "keys": ["super+shift+4"], "command": "move_to_group", "args": { "group": 3 } },
{ "keys": ["super+0"], "command": "focus_side_bar" },
// Add tag
{ "keys": ["super+alt+9"], "command": "insert_snippet", "args": { "name": "Packages/XML/long-tag.sublime-snippet" } },
{ "keys": ["super+shift+w"], "command": "insert_snippet", "args": { "name": "Packages/XML/long-tag.sublime-snippet" } },
// Bookmarks
{ "keys": ["f12"], "command": "next_bookmark" },
{ "keys": ["shift+f12"], "command": "prev_bookmark" },
{ "keys": ["super+f12"], "command": "toggle_bookmark" },
{ "keys": ["super+shift+f12"], "command": "clear_bookmarks" }
]
{
"close_windows_when_empty": true,
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme",
"drag_text": true,
"fold_buttons": true,
"font_face": "Consolas",
"font_options":
[
"no_round"
],
"font_size": 14.0,
"highlight_modified_tabs": true,
"ignored_packages":
[
"Vintage",
"FileDiffs",
"Markdown"
],
"line_padding_bottom": 1,
"line_padding_top": 1,
"margin": 0,
"open_files_in_new_window": true,
"overlay_scroll_bars": "enabled",
"scroll_past_end": true,
"shift_tab_unindent": true,
"soda_classic_tabs": true,
"soda_folder_icons": true,
"tab_size": 2,
"theme": "Soda Dark.sublime-theme",
"translate_tabs_to_spaces": true,
"word_separators": "-./\\()\"':,.;<>~!@#$%^&*|+=[]{}`~?",
"word_wrap": "enabled"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment