Skip to content

Instantly share code, notes, and snippets.

@garmjs
Last active February 23, 2016 15:07
Show Gist options
  • Save garmjs/8192276 to your computer and use it in GitHub Desktop.
Save garmjs/8192276 to your computer and use it in GitHub Desktop.
My keymap for easy navigation on Sublime Text 3 Remap keymap # jj to switch on vim mode # Hidde sidebar = ctrl + b # Switch layouts exp: vertical split = vS , Switch in one layout = ctrl + 0 When you are on split layouts you can move file with key # Move Right = mR , Move Left = mL # Resize window right = rR ,Resize window left = rL # If you nee…
[
// Hidde Sidebar
{ "keys": ["ctrl+b"], "command": "toggle_side_bar" },
// Switch with one layout
{
"keys": ["ctrl+0"],
"command": "set_layout",
"args":
{
"cols": [0.0, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1]]
}
},
// Switch with two layots
{
"keys": ["v", "S"],
"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]]
}
},
// Resize layout right
{
"keys": ["r", "R"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.33, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
}
},
// Resize right panel 90% for more room when you need
{
"keys": ["r", "1"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.1, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
}
},
// Resize on split window right
{
"keys": ["r", "L"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.66, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
}
},
// Resize left panel 90% for more room when you need it
{
"keys": ["l", "1"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.90, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
}
},
// Focus on First Window
{ "keys": ["ctrl+h"], "command": "focus_group", "args": { "group": 0 } },
// Focus on Second Window
{ "keys": ["ctrl+l"], "command": "focus_group", "args": { "group": 1 } },
// Move file on left Window
{ "keys": ["m", "L"], "command": "move_to_group", "args": { "group": 0 } },
// Move file on right Window
{ "keys": ["m", "R"], "command": "move_to_group", "args": { "group": 1 } },
// Switch on full screen
{ "keys": ["f", "S"], "command": "toggle_full_screen" },
// Save File
{ "keys": ["\\", "s"], "command": "save" },
// Tab Next
{ "keys": ["t", "N"], "command": "next_view_in_stack" },
// Tab Prev
{ "keys": ["t", "P"], "command": "prev_view_in_stack" },
// Create New File or Directory/
{ "keys": ["n", "F"], "command": "advanced_new_file_new"},
// Switch on vim mode
{ "keys": ["j", "j"], "command": "exit_insert_mode",
"context":
[
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operand": false }
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment