Skip to content

Instantly share code, notes, and snippets.

@aminroosta
Created January 9, 2016 23:17
Show Gist options
  • Save aminroosta/a4ed6172ed79e96fa620 to your computer and use it in GitHub Desktop.
Save aminroosta/a4ed6172ed79e96fa620 to your computer and use it in GitHub Desktop.
sublime vim keybindings 2016-01-09
[
/***** VINTAGE KEYMAPS *****/
{ "keys": ["H"], "command": "prev_view", "context": [{ "key": "setting.command_mode", "operand": true }, { "key": "setting.is_widget", "operand": false } ] },
{ "keys": ["L"], "command": "next_view", "context": [{ "key": "setting.command_mode", "operand": true }, { "key": "setting.is_widget", "operand": false } ] },
{ "keys": [",","q"], "command": "close", "context": [{ "key": "setting.command_mode", "operand": true }, { "key": "setting.is_widget", "operand": false } ] },
{ "keys": [",","w"], "command": "save", "context": [{ "key": "setting.command_mode", "operand": true }, { "key": "setting.is_widget", "operand": false } ] },
{ "keys": [",","c"], "command": "toggle_comment", "context": [{ "key": "setting.command_mode", "operand": true }, { "key": "setting.is_widget", "operand": false } ] },
{ "keys": [",",","], "command": "reindent", "args": { "single_line": false } , "context": [{ "key": "setting.command_mode", "operand": true }, { "key": "setting.is_widget", "operand": false } ] },
{ "keys": ["z","a"], "command": "fold", "context": [{ "key": "setting.command_mode", "operand": true }, { "key": "setting.is_widget", "operand": false } ] },
{ "keys": ["z","u"], "command": "unfold", "context": [{ "key": "setting.command_mode", "operand": true }, { "key": "setting.is_widget", "operand": false } ] },
//{ "keys": ["ctrl+h"], "command": "move_tab","args": {"position":"-1"}, "context": [{ "key": "setting.command_mode", "operand": true }, { "key": "setting.is_widget", "operand": false } ] },
//{"keys": ["ctrl+l"], "command": "move_tab", "args": {"position":"+1"}, "context": [{ "key": "setting.command_mode", "operand": true }, { "key": "setting.is_widget", "operand": false } ] },
{"keys": [ ",","i" ], "command": "typescript_quick_info_doc", "context": [{ "key": "selector", "operator": "equal", "operand": "source.ts" }, { "key": "setting.command_mode", "operand": true }, { "key": "setting.is_widget", "operand": false } ] },
{"keys": [",", "H"], "command": "prev_view"},
{"keys": [",", "L"], "command": "next_view"},
// move window focus up
//{ "keys": ["ctrl+k"], "command": "move_group_focus",
//"args": {"direction": "up"},
//"context": [{ "key": "setting.command_mode", "operand": true }, { "key": "setting.is_widget", "operand": false } ]
//},
// move window focus down
//{ "keys": ["ctrl+j"], "command": "move_group_focus",
//"args": {"direction": "down"},
//"context": [{ "key": "setting.command_mode", "operand": true }, { "key": "setting.is_widget", "operand": false } ]
//},
// move window focus right
//{ "keys": ["ctrl+l"], "command": "move_group_focus",
//"args": {"direction": "right"},
//"context": [{ "key": "setting.command_mode", "operand": true }, { "key": "setting.is_widget", "operand": false } ]
//},
// move window focus left
//{ "keys": ["ctrl+h"], "command": "move_group_focus",
//"args": {"direction": "left"},
//"context": [{ "key": "setting.command_mode", "operand": true }, { "key": "setting.is_widget", "operand": false } ]
//},
// no split
{
"keys": [",","."],
"command": "set_layout",
"args":
{
"cols": [0.0, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1]]
}
},
// split vertical
{
"keys": [",", "v"],
"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]]
}
},
// split horizonatal
//{
//"keys": [",", "h"],
//"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]]
//}
//},
// Group Window Movements
//{ "keys": ["ctrl+shift+h"], "command": "move_to_group", "args": { "group": 0 } },
//{ "keys": ["ctrl+shift+l"], "command": "move_to_group", "args": { "group": 1 } },
//{ "keys": ["ctrl+shift+k"], "command": "move_to_group", "args": { "group": 0 } },
//{ "keys": ["ctrl+shift+j"], "command": "move_to_group", "args": { "group": 1 } },
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment