Skip to content
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

Lag when inserting before of after a block selection #6

Closed
bear24rw opened this issue Feb 7, 2014 · 5 comments · Fixed by #9
Closed

Lag when inserting before of after a block selection #6

bear24rw opened this issue Feb 7, 2014 · 5 comments · Fixed by #9

Comments

@bear24rw
Copy link

bear24rw commented Feb 7, 2014

There is a noticeable lag that this plugin introduces when inserting before or after a block selection.

To reproduce create a file like this:

asdf=
asdf=
asdf=

Visually select all the = signs, execute shift+A. There is a noticeable lag before it drops you into insert mode.

Is there any possibility of reducing or eliminating this lag?

@wellle
Copy link
Owner

wellle commented Feb 7, 2014

Yes I see. That is because of the visual mode mappings beginning with A. I will look into it.

@bear24rw
Copy link
Author

bear24rw commented Feb 7, 2014

Is there a use case for having visual mode mappings?

@wellle
Copy link
Owner

wellle commented Feb 7, 2014

Well usually all text objects work both in visual and operator pending mode. So you could visually select an area and possible change it before applying your operator. But the visual mode mapping is certainly not as important as the operator pending mode one.

And appending after a visual block mode selection is definitely more important than my mappings. So as a last resort I could just remove the visual mode mapping.

But before I do that I would like to investigate if there is any way to have the mapping only kick in when in visual mode, but not when in visual block mode.

@wellle
Copy link
Owner

wellle commented Feb 9, 2014

Unfortunately there doesn't seem to be a way to have a mapping only in visual, but not in visual block mode.

It might be possible to create and delete these mappings every time visual block mode is entered and left, but that seems too dirty in comparison to the gained benefit.

@wellle
Copy link
Owner

wellle commented Feb 22, 2014

@bear24rw Thanks to @Raimondi vAn, is now working again while appending with A still works without lag in visual block mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants