Open tummetott opened 11 months ago
i have the same problem
I've had the same issue for months at this point, only just realized it was caused by this specific behavior.
@johnpyp Well you found the right lines of code but uncommenting it is no solution. It is valid vim behavior to enter operator pending mode pressing v
-> a
or i
. The problem is that ZVM does not exit this mode when pressing ESC in this state.
Yeah, I just did that as a temporary patch. I tried to debug the issue but couldn't track down where the escape handling should actually happen... not familiar enough with the code / complex zsh.
General information
Basic examination
Problem description
Hello, I've encountered a recurrent issue in ZVM where unintentional entry into visual mode leads to a challenging exit process. Often, by habit, I press
i
aiming to switch to insert mode, but this action instead initiates the operator pending mode within visual mode. This is an expected behavior of the mode. However, the problem arises when attempting to exit from this state. Repeatedly pressingESC
does not lead to an exit from the operator pending mode. It necessitates an additional action, thew
key to select a word, beforeESC
successfully exits visual mode.Reproduction steps
ESC
v
i
ora
ESC
Expected behavior
Upon completion of Step 4, the expectation is to exit operator pending mode directly with the
ESC
key.