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 22:23:10 -05:00 committed by GitHub
parent 7bddb390ca
commit d9183c7669
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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": {