vim: Allow ctrl+[ as an alias for escape (#2741)
Also remove unneeded mappings in `g` and `z` modes Release Notes: - Adds `ctrl+[` as an alias for escape ([#538](https://github.com/zed-industries/community/issues/538)).
This commit is contained in:
commit
96abba2b7d
1 changed files with 10 additions and 9 deletions
|
@ -99,6 +99,10 @@
|
||||||
"vim::SwitchMode",
|
"vim::SwitchMode",
|
||||||
"Normal"
|
"Normal"
|
||||||
],
|
],
|
||||||
|
"ctrl+[": [
|
||||||
|
"vim::SwitchMode",
|
||||||
|
"Normal"
|
||||||
|
],
|
||||||
"0": "vim::StartOfLine", // When no number operator present, use start of line motion
|
"0": "vim::StartOfLine", // When no number operator present, use start of line motion
|
||||||
"1": [
|
"1": [
|
||||||
"vim::Number",
|
"vim::Number",
|
||||||
|
@ -234,10 +238,6 @@
|
||||||
"h": "editor::Hover",
|
"h": "editor::Hover",
|
||||||
"t": "pane::ActivateNextItem",
|
"t": "pane::ActivateNextItem",
|
||||||
"shift-t": "pane::ActivatePrevItem",
|
"shift-t": "pane::ActivatePrevItem",
|
||||||
"escape": [
|
|
||||||
"vim::SwitchMode",
|
|
||||||
"Normal"
|
|
||||||
],
|
|
||||||
"d": "editor::GoToDefinition"
|
"d": "editor::GoToDefinition"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -265,10 +265,6 @@
|
||||||
"t": "editor::ScrollCursorTop",
|
"t": "editor::ScrollCursorTop",
|
||||||
"z": "editor::ScrollCursorCenter",
|
"z": "editor::ScrollCursorCenter",
|
||||||
"b": "editor::ScrollCursorBottom",
|
"b": "editor::ScrollCursorBottom",
|
||||||
"escape": [
|
|
||||||
"vim::SwitchMode",
|
|
||||||
"Normal"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -322,7 +318,8 @@
|
||||||
"context": "Editor && vim_mode == insert",
|
"context": "Editor && vim_mode == insert",
|
||||||
"bindings": {
|
"bindings": {
|
||||||
"escape": "vim::NormalBefore",
|
"escape": "vim::NormalBefore",
|
||||||
"ctrl-c": "vim::NormalBefore"
|
"ctrl-c": "vim::NormalBefore",
|
||||||
|
"ctrl-[": "vim::NormalBefore",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -333,6 +330,10 @@
|
||||||
"escape": [
|
"escape": [
|
||||||
"vim::SwitchMode",
|
"vim::SwitchMode",
|
||||||
"Normal"
|
"Normal"
|
||||||
|
],
|
||||||
|
"ctrl+[": [
|
||||||
|
"vim::SwitchMode",
|
||||||
|
"Normal"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue