-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot insert at the start of lines with visual block #1633
Comments
The same issue happens with regular visual mode. |
I've looked into it a bit under LiveDebug (https://www.twitch.tv/bastiondebugging). It looks like libvim isn't handling the block mode correctly. I'll be updating the visual_mode tests to demonstrate for comparison. Observations are (using unit test hacks)... Starting file is
The
When the visual mode is used, with "I", it will produce
expected
When visual mode is used with "c", it will product
Expected
I'll construct a pull request for these tests in the next debug run. |
Any update on this issue? I am still experiencing this on latest build c771129 |
Also still in 4aa0458 but since it's probably a libvim issue it might be better situated in that repo. Possibly related to these two TODOs libvim/src/normal.c#L1546, libvim/src/normal.c#L1553 - as far as I can climb through the flow of visual block handling those are the difference to regular vim. |
__Issue:__ `I` and `A` in visual-block mode should allow inserting, or appending, characters across all linewise selections in the visual block __Fix:__ Implement using our in-progress multi-cursor support: ![2021-01-19 12 02 59](https://user-images.githubusercontent.com/13532591/105086839-7746a700-5a4e-11eb-9a44-c984d27ae6bc.gif) Functionally, this should behave the same as `<c-v>`+`I`/`A`, but show all insertions during the gesture (as opposed to Vim, which would only show a single insertion, and then propagate them on the `<esc>` press). A baby step towards snippets & multiple cursors Fixes #1633 Related #1551
After creating a visual block, pressing
I
doesn't seem to do anything. Pressingc
on the other hand does work, but consumes the first character as you'd expect.Steps to reproduce:
Control-Q
) containing only the first character of every lineI
to enter insert modeExpected behaviour:
Actual behaviour:
The text was updated successfully, but these errors were encountered: