ex-mode
ex-mode copied to clipboard
Visual mode doesn't stop after a replacement command
trafficstars
Steps to reproduce
-
Put this into a new buffer:
ONE TWO -
Exit insert mode.
-
Put cursor on first line (
xxx). -
Vjto select both lines. -
:'<,'>s/ONE/THREE/to replaceONEwithTHREE.
Expected
I am out of visual mode.
If I press u at this point, it should undo the operation, leaving me with
ONE
TWO
Actual Result
I am still in visual mode.
If I press u at this point, it runs vim-mode-plus:lower-case, which result in this:
three
two