vim: Escape to normal mode when visual surround operation pending (#24484)
Closes #24382 Release Notes: Added a default keymap that returns the user to `normal` mode after pressing escape during a pending `visual-surround` operation. - N/A --------- Co-authored-by: roy.crippen4 <roy.crippen4@archarithms.com> Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
parent
7bddb390ca
commit
d9183c7669
1 changed files with 6 additions and 0 deletions
|
@ -381,6 +381,12 @@
|
|||
"ctrl-q": ["vim::PushLiteral", {}]
|
||||
}
|
||||
},
|
||||
{
|
||||
"context": "Editor && vim_mode == waiting && (vim_operator == ys || vim_operator == cs)",
|
||||
"bindings": {
|
||||
"escape": "vim::SwitchToNormalMode"
|
||||
}
|
||||
},
|
||||
{
|
||||
"context": "vim_mode == operator",
|
||||
"bindings": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue