Skip to content

Instantly share code, notes, and snippets.

@simon-lang
Last active June 30, 2025 23:32
Show Gist options
  • Save simon-lang/c126fa8dca1490154bfdd6656dfd052f to your computer and use it in GitHub Desktop.
Save simon-lang/c126fa8dca1490154bfdd6656dfd052f to your computer and use it in GitHub Desktop.
zed-keymap.json
[
{
"context": "Workspace",
"bindings": {
"ctrl-j": "editor::MoveDown",
"ctrl-k": "editor::MoveUp"
}
},
{
"context": "Editor && vim_mode == insert && !menu",
"bindings": {
"j k": "vim::SwitchToNormalMode",
"j j": "vim::SwitchToNormalMode",
"k k": "vim::SwitchToNormalMode"
}
},
{
"context": "Editor && vim_mode == normal && !menu",
"bindings": {
"space p": "file_finder::Toggle",
"\\": "workspace::NewSearch",
"space space": "tab_switcher::Toggle",
"tab": "pane::ActivateNextItem",
"shift-tab": "pane::ActivatePreviousItem",
"space enter": "command_palette::Toggle",
"space a": "agent::ToggleFocus",
"g r": "editor::FindAllReferences",
"space r": "editor::Rename",
"space t": "terminal_panel::ToggleFocus",
"ctrl-j": "vim::Down",
"ctrl-k": "vim::Up",
"ctrl-d": null,
"space h r": "git::Restore",
"space s": "pane::RevealInProjectPanel",
"space d l": "workspace::ToggleLeftDock",
"space d r": "workspace::ToggleRightDock"
}
},
{
"context": "Editor && vim_mode == visual && !menu",
"bindings": {
"ctrl-d": "editor::SelectNext",
"shift-k": "editor::MoveLineUp",
"shift-j": "editor::MoveLineDown"
}
},
{
"context": "Editor && vim_mode == normal && !menu",
"bindings": {
"space b q": "pane::CloseActiveItem",
"space b shift-q": "pane::CloseInactiveItems"
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment