Skip to content

Instantly share code, notes, and snippets.

@mayinx
Last active June 30, 2017 14:25
Show Gist options
  • Save mayinx/8953353c67bf409de186 to your computer and use it in GitHub Desktop.
Save mayinx/8953353c67bf409de186 to your computer and use it in GitHub Desktop.
User Key Bindings for Sublime Text 2 - place this in .config/sublime-text-2/Packages/User
[
// inserts / toggles erb tags <%= %> | <% %> | <%- -%> | <%= -%> | <%# %> | <% -%>
{ "keys": ["ctrl+shift+."], "command": "erb" },
// Fold / Unfold Comments
{ "keys": ["ctrl+shift+c"], "command": "toggle_fold_comments" },
// Reindent all Lines
{ "keys": ["ctrl+shift+r"], "command": "reindent" , "args": { "single_line": false } },
// layout: show right column full / switch to single column layout
{
"keys": ["alt+right"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.00, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
}
},
// layout: show left column full / switch to single column layout
{
"keys": ["alt+left"],
"command": "set_layout",
"args":
{
"cols": [0.0, 1.0, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
}
},
// layout: split layout - 2 columns - left - right
{
"keys": ["alt+down"],
"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": ["alt+up"],
// "command": "set_layout",
// "args":
// {
// "cols": [0.0, 1.0, 1.0],
// "rows": [0.0, 1.0],
// "cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
// }
// }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment