zed/assets/keymaps/vim.json

154 lines
4.0 KiB
JSON
Raw Normal View History

[
{
"context": "Editor && VimControl",
"bindings": {
"g": [
"vim::PushOperator",
{
"Namespace": "G"
}
],
"h": "vim::Left",
"backspace": "vim::Left",
"j": "vim::Down",
"k": "vim::Up",
"l": "vim::Right",
"0": "vim::StartOfLine",
"$": "vim::EndOfLine",
"shift-g": "vim::EndOfDocument",
"w": "vim::NextWordStart",
"shift-w": [
"vim::NextWordStart",
{
"ignorePunctuation": true
}
],
"e": "vim::NextWordEnd",
"shift-e": [
"vim::NextWordEnd",
{
"ignorePunctuation": true
}
],
"b": "vim::PreviousWordStart",
"shift-b": [
"vim::PreviousWordStart",
{
"ignorePunctuation": true
}
],
"%": "vim::Matching",
"escape": "editor::Cancel"
}
},
{
"context": "Editor && vim_mode == normal && vim_operator == none",
"bindings": {
"c": [
"vim::PushOperator",
"Change"
],
"shift-c": "vim::ChangeToEndOfLine",
"d": [
"vim::PushOperator",
"Delete"
],
"shift-d": "vim::DeleteToEndOfLine",
2022-05-23 19:23:25 +03:00
"y": [
"vim::PushOperator",
"Yank"
],
"i": [
"vim::SwitchMode",
"Insert"
],
"shift-i": "vim::InsertFirstNonWhitespace",
"a": "vim::InsertAfter",
"shift-a": "vim::InsertEndOfLine",
"x": "vim::DeleteRight",
"shift-x": "vim::DeleteLeft",
"^": "vim::FirstNonWhitespace",
2022-04-30 02:14:01 +03:00
"o": "vim::InsertLineBelow",
"shift-o": "vim::InsertLineAbove",
2022-05-03 20:29:57 +03:00
"v": [
"vim::SwitchMode",
{
"Visual": {
"line": false
}
}
2022-05-18 21:10:24 +03:00
],
"shift-v": [
2022-05-18 21:10:24 +03:00
"vim::SwitchMode",
{
"Visual": {
"line": true
}
}
2022-05-20 03:42:30 +03:00
],
2022-05-23 19:23:25 +03:00
"p": "vim::Paste",
"u": "editor::Undo",
"ctrl-r": "editor::Redo",
"ctrl-o": "pane::GoBack",
"/": [
"buffer_search::Deploy",
{
"focus": true
}
]
}
},
{
"context": "Editor && vim_operator == g",
"bindings": {
"g": "vim::StartOfDocument",
"h": "editor::Hover",
"escape": [
"vim::SwitchMode",
"Normal"
]
}
},
{
"context": "Editor && vim_operator == c",
"bindings": {
"w": "vim::ChangeWord",
"shift-w": [
"vim::ChangeWord",
{
"ignorePunctuation": true
}
],
"c": "vim::CurrentLine"
}
},
{
"context": "Editor && vim_operator == d",
"bindings": {
"d": "vim::CurrentLine"
}
},
2022-05-23 19:23:25 +03:00
{
"context": "Editor && vim_operator == y",
"bindings": {
"y": "vim::CurrentLine"
}
},
2022-05-03 20:29:57 +03:00
{
"context": "Editor && vim_mode == visual",
"bindings": {
"c": "vim::VisualChange",
"d": "vim::VisualDelete",
2022-05-23 19:23:25 +03:00
"x": "vim::VisualDelete",
2022-07-05 07:10:20 +03:00
"y": "vim::VisualYank",
"p": "vim::VisualPaste"
2022-05-03 20:29:57 +03:00
}
},
{
"context": "Editor && vim_mode == insert",
"bindings": {
"escape": "vim::NormalBefore",
"ctrl-c": "vim::NormalBefore"
}
}
]