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:
roycrippen4
2025-02-07 20:23:10 -07:00
committed by GitHub
co-authored by roy.crippen4 Conrad Irwin
parent 7bddb390ca
commit d9183c7669
+6
View File
@@ -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": {