Describe the bug
When selecting multiple occurrences of a word or selection via Ctrl + D, then entering Insert mode with c, then entering Normal mode via Escape, the multiple cursors are preserved (great!). However if Insert mode was entered via Shift +i or Shift + a, then the additional cursors are lost. In both cases Insert mode was entered directly from Visual mode but afterwards they behave differently. I believe this is a discrepancy that shouldn't exist and makes me sad :(
The best workaround I can see is to enter Normal mode (from Visual mode) via Ctrl + [ before entering Insert mode. That way the cursors are preserved upon exiting Insert mode.
To Reproduce
Steps to reproduce the behavior:
Select multiple occurrences of a word or selection via Ctrl + D
Enter Insert mode via Shift + i or Shift + a
Type some text (optional)
Exit Insert mode via Escape
Only the first cursor remains
Expected behavior
Exiting Insert mode into Normal mode should retain all cursors. Then pressing Escape once more in Normal mode should clear the additional cursors.
Environment (please complete the following information):
I would love to this this solved as well as I hit this unintended behaviour everyday I think haha.
@J-Fields happy to try and help if you could point me to the right direction!
Describe the bug When selecting multiple occurrences of a word or selection via
Ctrl + D
, then entering Insert mode withc
, then entering Normal mode viaEscape
, the multiple cursors are preserved (great!). However if Insert mode was entered viaShift +i
orShift + a
, then the additional cursors are lost. In both cases Insert mode was entered directly from Visual mode but afterwards they behave differently. I believe this is a discrepancy that shouldn't exist and makes me sad :(The best workaround I can see is to enter Normal mode (from Visual mode) via
Ctrl + [
before entering Insert mode. That way the cursors are preserved upon exiting Insert mode.To Reproduce Steps to reproduce the behavior:
Ctrl + D
Shift + i
orShift + a
Escape
Expected behavior Exiting Insert mode into Normal mode should retain all cursors. Then pressing
Escape
once more in Normal mode should clear the additional cursors.Environment (please complete the following information):