2022-04-21 23:33:39 +03:00
|
|
|
[
|
2023-04-20 14:08:30 +03:00
|
|
|
{
|
2023-06-27 06:46:06 +03:00
|
|
|
"context": "Editor && VimControl && !VimWaiting && !menu",
|
2023-04-20 14:08:30 +03:00
|
|
|
"bindings": {
|
|
|
|
"g": [
|
|
|
|
"vim::PushOperator",
|
|
|
|
{
|
|
|
|
"Namespace": "G"
|
2022-04-21 23:33:39 +03:00
|
|
|
}
|
2023-04-20 14:08:30 +03:00
|
|
|
],
|
|
|
|
"i": [
|
|
|
|
"vim::PushOperator",
|
|
|
|
{
|
|
|
|
"Object": {
|
|
|
|
"around": false
|
|
|
|
}
|
2022-04-22 19:43:15 +03:00
|
|
|
}
|
2023-04-20 14:08:30 +03:00
|
|
|
],
|
|
|
|
"a": [
|
|
|
|
"vim::PushOperator",
|
|
|
|
{
|
|
|
|
"Object": {
|
|
|
|
"around": true
|
|
|
|
}
|
2022-10-09 07:20:47 +03:00
|
|
|
}
|
2023-04-20 14:08:30 +03:00
|
|
|
],
|
|
|
|
"h": "vim::Left",
|
2023-06-21 23:02:32 +03:00
|
|
|
"left": "vim::Left",
|
2023-04-20 14:08:30 +03:00
|
|
|
"backspace": "vim::Backspace",
|
|
|
|
"j": "vim::Down",
|
2023-06-21 23:02:32 +03:00
|
|
|
"down": "vim::Down",
|
2023-04-20 14:08:30 +03:00
|
|
|
"enter": "vim::NextLineStart",
|
|
|
|
"k": "vim::Up",
|
2023-06-21 23:02:32 +03:00
|
|
|
"up": "vim::Up",
|
2023-04-20 14:08:30 +03:00
|
|
|
"l": "vim::Right",
|
2023-06-21 23:02:32 +03:00
|
|
|
"right": "vim::Right",
|
2023-04-20 14:08:30 +03:00
|
|
|
"$": "vim::EndOfLine",
|
2023-07-03 21:55:41 +03:00
|
|
|
"^": "vim::FirstNonWhitespace",
|
2023-04-20 14:08:30 +03:00
|
|
|
"shift-g": "vim::EndOfDocument",
|
|
|
|
"w": "vim::NextWordStart",
|
2023-06-30 07:45:54 +03:00
|
|
|
"{": "vim::StartOfParagraph",
|
|
|
|
"}": "vim::EndOfParagraph",
|
2023-04-20 14:08:30 +03:00
|
|
|
"shift-w": [
|
|
|
|
"vim::NextWordStart",
|
|
|
|
{
|
|
|
|
"ignorePunctuation": true
|
2022-04-21 23:33:39 +03:00
|
|
|
}
|
2023-04-20 14:08:30 +03:00
|
|
|
],
|
|
|
|
"e": "vim::NextWordEnd",
|
|
|
|
"shift-e": [
|
|
|
|
"vim::NextWordEnd",
|
|
|
|
{
|
|
|
|
"ignorePunctuation": true
|
2022-04-22 19:43:15 +03:00
|
|
|
}
|
2023-04-20 14:08:30 +03:00
|
|
|
],
|
|
|
|
"b": "vim::PreviousWordStart",
|
|
|
|
"shift-b": [
|
|
|
|
"vim::PreviousWordStart",
|
|
|
|
{
|
|
|
|
"ignorePunctuation": true
|
2022-04-22 19:43:15 +03:00
|
|
|
}
|
2023-04-20 14:08:30 +03:00
|
|
|
],
|
2023-06-28 21:48:15 +03:00
|
|
|
"n": "search::SelectNextMatch",
|
|
|
|
"shift-n": "search::SelectPrevMatch",
|
2023-04-20 14:08:30 +03:00
|
|
|
"%": "vim::Matching",
|
|
|
|
"f": [
|
|
|
|
"vim::PushOperator",
|
|
|
|
{
|
|
|
|
"FindForward": {
|
|
|
|
"before": false
|
|
|
|
}
|
2022-05-23 19:23:25 +03:00
|
|
|
}
|
2023-04-20 14:08:30 +03:00
|
|
|
],
|
|
|
|
"t": [
|
|
|
|
"vim::PushOperator",
|
|
|
|
{
|
|
|
|
"FindForward": {
|
|
|
|
"before": true
|
|
|
|
}
|
2022-12-08 03:39:32 +03:00
|
|
|
}
|
2023-04-20 14:08:30 +03:00
|
|
|
],
|
|
|
|
"shift-f": [
|
|
|
|
"vim::PushOperator",
|
|
|
|
{
|
|
|
|
"FindBackward": {
|
|
|
|
"after": false
|
|
|
|
}
|
2022-10-06 06:19:30 +03:00
|
|
|
}
|
2023-04-20 14:08:30 +03:00
|
|
|
],
|
|
|
|
"shift-t": [
|
|
|
|
"vim::PushOperator",
|
|
|
|
{
|
|
|
|
"FindBackward": {
|
|
|
|
"after": true
|
|
|
|
}
|
2022-05-03 20:29:57 +03:00
|
|
|
}
|
2023-04-20 14:08:30 +03:00
|
|
|
],
|
2023-06-21 23:34:35 +03:00
|
|
|
"ctrl-o": "pane::GoBack",
|
|
|
|
"ctrl-]": "editor::GoToDefinition",
|
2023-07-04 00:20:10 +03:00
|
|
|
"escape": [
|
|
|
|
"vim::SwitchMode",
|
|
|
|
"Normal"
|
|
|
|
],
|
2023-06-28 22:13:02 +03:00
|
|
|
"*": "vim::MoveToNext",
|
|
|
|
"#": "vim::MoveToPrev",
|
2023-04-20 14:08:30 +03:00
|
|
|
"0": "vim::StartOfLine", // When no number operator present, use start of line motion
|
|
|
|
"1": [
|
|
|
|
"vim::Number",
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"2": [
|
|
|
|
"vim::Number",
|
|
|
|
2
|
|
|
|
],
|
|
|
|
"3": [
|
|
|
|
"vim::Number",
|
|
|
|
3
|
|
|
|
],
|
|
|
|
"4": [
|
|
|
|
"vim::Number",
|
|
|
|
4
|
|
|
|
],
|
|
|
|
"5": [
|
|
|
|
"vim::Number",
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"6": [
|
|
|
|
"vim::Number",
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"7": [
|
|
|
|
"vim::Number",
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"8": [
|
|
|
|
"vim::Number",
|
|
|
|
8
|
|
|
|
],
|
|
|
|
"9": [
|
|
|
|
"vim::Number",
|
|
|
|
9
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2023-06-22 19:34:51 +03:00
|
|
|
"context": "Editor && vim_mode == normal && (vim_operator == none || vim_operator == n) && !VimWaiting",
|
2023-04-20 14:08:30 +03:00
|
|
|
"bindings": {
|
|
|
|
"c": [
|
|
|
|
"vim::PushOperator",
|
|
|
|
"Change"
|
|
|
|
],
|
|
|
|
"shift-c": "vim::ChangeToEndOfLine",
|
|
|
|
"d": [
|
|
|
|
"vim::PushOperator",
|
|
|
|
"Delete"
|
|
|
|
],
|
|
|
|
"shift-d": "vim::DeleteToEndOfLine",
|
2023-06-21 20:58:31 +03:00
|
|
|
"shift-j": "editor::JoinLines",
|
2023-04-20 14:08:30 +03:00
|
|
|
"y": [
|
|
|
|
"vim::PushOperator",
|
|
|
|
"Yank"
|
|
|
|
],
|
|
|
|
"z": [
|
|
|
|
"vim::PushOperator",
|
|
|
|
{
|
|
|
|
"Namespace": "Z"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"i": [
|
|
|
|
"vim::SwitchMode",
|
|
|
|
"Insert"
|
|
|
|
],
|
|
|
|
"shift-i": "vim::InsertFirstNonWhitespace",
|
|
|
|
"a": "vim::InsertAfter",
|
|
|
|
"shift-a": "vim::InsertEndOfLine",
|
|
|
|
"x": "vim::DeleteRight",
|
|
|
|
"shift-x": "vim::DeleteLeft",
|
|
|
|
"o": "vim::InsertLineBelow",
|
|
|
|
"shift-o": "vim::InsertLineAbove",
|
2023-06-27 05:19:28 +03:00
|
|
|
"~": "vim::ChangeCase",
|
2023-04-20 14:08:30 +03:00
|
|
|
"v": [
|
|
|
|
"vim::SwitchMode",
|
|
|
|
{
|
|
|
|
"Visual": {
|
|
|
|
"line": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"shift-v": [
|
|
|
|
"vim::SwitchMode",
|
|
|
|
{
|
|
|
|
"Visual": {
|
|
|
|
"line": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"p": "vim::Paste",
|
|
|
|
"u": "editor::Undo",
|
|
|
|
"ctrl-r": "editor::Redo",
|
2023-07-06 22:21:01 +03:00
|
|
|
"/": "vim::Search",
|
|
|
|
"?": [
|
|
|
|
"vim::Search",
|
2023-04-20 14:08:30 +03:00
|
|
|
{
|
2023-07-06 22:21:01 +03:00
|
|
|
"backwards": true,
|
2022-04-22 19:43:15 +03:00
|
|
|
}
|
2023-04-20 14:08:30 +03:00
|
|
|
],
|
2023-06-26 21:23:58 +03:00
|
|
|
"ctrl-f": "vim::PageDown",
|
|
|
|
"pagedown": "vim::PageDown",
|
|
|
|
"ctrl-b": "vim::PageUp",
|
|
|
|
"pageup": "vim::PageUp",
|
|
|
|
"ctrl-d": "vim::ScrollDown",
|
|
|
|
"ctrl-u": "vim::ScrollUp",
|
|
|
|
"ctrl-e": "vim::LineDown",
|
|
|
|
"ctrl-y": "vim::LineUp",
|
2023-04-20 14:08:30 +03:00
|
|
|
"r": [
|
|
|
|
"vim::PushOperator",
|
|
|
|
"Replace"
|
2023-06-22 00:05:54 +03:00
|
|
|
],
|
2023-06-26 23:42:47 +03:00
|
|
|
"s": "vim::Substitute",
|
2023-06-26 19:08:34 +03:00
|
|
|
"> >": "editor::Indent",
|
2023-06-27 13:09:47 +03:00
|
|
|
"< <": "editor::Outdent",
|
2023-06-26 23:42:47 +03:00
|
|
|
"ctrl-pagedown": "pane::ActivateNextItem",
|
|
|
|
"ctrl-pageup": "pane::ActivatePrevItem"
|
2023-04-20 14:08:30 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"context": "Editor && vim_operator == n",
|
|
|
|
"bindings": {
|
|
|
|
"0": [
|
|
|
|
"vim::Number",
|
|
|
|
0
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"context": "Editor && vim_operator == g",
|
|
|
|
"bindings": {
|
|
|
|
"g": "vim::StartOfDocument",
|
|
|
|
"h": "editor::Hover",
|
2023-06-26 23:42:47 +03:00
|
|
|
"t": "pane::ActivateNextItem",
|
|
|
|
"shift-t": "pane::ActivatePrevItem",
|
2023-04-20 14:08:30 +03:00
|
|
|
"escape": [
|
|
|
|
"vim::SwitchMode",
|
|
|
|
"Normal"
|
|
|
|
],
|
2023-06-28 22:13:02 +03:00
|
|
|
"d": "editor::GoToDefinition",
|
2023-06-28 22:17:48 +03:00
|
|
|
"shift-d": "editor::GoToTypeDefinition",
|
2023-06-28 22:13:02 +03:00
|
|
|
"*": [
|
|
|
|
"vim::MoveToNext",
|
|
|
|
{
|
|
|
|
"partialWord": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"#": [
|
|
|
|
"vim::MoveToPrev",
|
|
|
|
{
|
|
|
|
"partialWord": true
|
|
|
|
}
|
|
|
|
]
|
2023-04-20 14:08:30 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"context": "Editor && vim_operator == c",
|
|
|
|
"bindings": {
|
|
|
|
"c": "vim::CurrentLine"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"context": "Editor && vim_operator == d",
|
|
|
|
"bindings": {
|
|
|
|
"d": "vim::CurrentLine"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"context": "Editor && vim_operator == y",
|
|
|
|
"bindings": {
|
|
|
|
"y": "vim::CurrentLine"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"context": "Editor && vim_operator == z",
|
|
|
|
"bindings": {
|
|
|
|
"t": "editor::ScrollCursorTop",
|
|
|
|
"z": "editor::ScrollCursorCenter",
|
|
|
|
"b": "editor::ScrollCursorBottom",
|
|
|
|
"escape": [
|
|
|
|
"vim::SwitchMode",
|
|
|
|
"Normal"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"context": "Editor && VimObject",
|
|
|
|
"bindings": {
|
|
|
|
"w": "vim::Word",
|
|
|
|
"shift-w": [
|
|
|
|
"vim::Word",
|
|
|
|
{
|
|
|
|
"ignorePunctuation": true
|
2023-01-07 01:03:01 +03:00
|
|
|
}
|
2023-04-20 14:08:30 +03:00
|
|
|
],
|
|
|
|
"s": "vim::Sentence",
|
|
|
|
"'": "vim::Quotes",
|
|
|
|
"`": "vim::BackQuotes",
|
|
|
|
"\"": "vim::DoubleQuotes",
|
|
|
|
"(": "vim::Parentheses",
|
|
|
|
")": "vim::Parentheses",
|
|
|
|
"[": "vim::SquareBrackets",
|
|
|
|
"]": "vim::SquareBrackets",
|
|
|
|
"{": "vim::CurlyBrackets",
|
|
|
|
"}": "vim::CurlyBrackets",
|
|
|
|
"<": "vim::AngleBrackets",
|
|
|
|
">": "vim::AngleBrackets"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"context": "Editor && vim_mode == visual && !VimWaiting",
|
|
|
|
"bindings": {
|
|
|
|
"u": "editor::Undo",
|
|
|
|
"c": "vim::VisualChange",
|
|
|
|
"d": "vim::VisualDelete",
|
|
|
|
"x": "vim::VisualDelete",
|
|
|
|
"y": "vim::VisualYank",
|
|
|
|
"p": "vim::VisualPaste",
|
2023-06-22 00:44:19 +03:00
|
|
|
"s": "vim::Substitute",
|
2023-06-27 05:19:28 +03:00
|
|
|
"~": "vim::ChangeCase",
|
2023-04-20 14:08:30 +03:00
|
|
|
"r": [
|
|
|
|
"vim::PushOperator",
|
|
|
|
"Replace"
|
2023-06-26 19:08:34 +03:00
|
|
|
],
|
2023-07-03 21:50:17 +03:00
|
|
|
"ctrl-c": [
|
|
|
|
"vim::SwitchMode",
|
|
|
|
"Normal"
|
|
|
|
],
|
2023-06-27 20:52:04 +03:00
|
|
|
">": "editor::Indent",
|
|
|
|
"<": "editor::Outdent"
|
2023-04-20 14:08:30 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"context": "Editor && vim_mode == insert",
|
|
|
|
"bindings": {
|
|
|
|
"escape": "vim::NormalBefore",
|
|
|
|
"ctrl-c": "vim::NormalBefore"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"context": "Editor && VimWaiting",
|
|
|
|
"bindings": {
|
|
|
|
"tab": "vim::Tab",
|
|
|
|
"enter": "vim::Enter",
|
2023-07-04 00:20:10 +03:00
|
|
|
"escape": [
|
|
|
|
"vim::SwitchMode",
|
|
|
|
"Normal"
|
|
|
|
]
|
2022-04-12 01:54:52 +03:00
|
|
|
}
|
2023-06-28 21:48:15 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"context": "BufferSearchBar",
|
|
|
|
"bindings": {
|
2023-07-07 20:33:15 +03:00
|
|
|
"enter": "vim::SearchSubmit",
|
2023-07-06 22:21:01 +03:00
|
|
|
"escape": "buffer_search::Dismiss"
|
2023-06-28 21:48:15 +03:00
|
|
|
}
|
2023-04-20 14:08:30 +03:00
|
|
|
}
|
|
|
|
]
|