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

[bug] strange fastwarp when there is virtual text #94

Open
kaiphat opened this issue Jul 26, 2024 · 3 comments
Open

[bug] strange fastwarp when there is virtual text #94

kaiphat opened this issue Jul 26, 2024 · 3 comments

Comments

@kaiphat
Copy link

kaiphat commented Jul 26, 2024

Screen.Recording.2024-07-26.at.12.47.54.mov
@kaiphat
Copy link
Author

kaiphat commented Jul 26, 2024

My config here.

@altermo
Copy link
Owner

altermo commented Jul 26, 2024

Here is the cause:
All mappings use arrow key movements (instead of function calls) to go to positions to be dot-compatible.
virtualedit=insert makes it so that arrow key movement interacts with virtual text, but ultimate-autopair doesn't take this into account (and there is no easy way for it to take this into account).
The rest of the strangeness is because of how cmp works, which is outside of my curfew.

In your example, the keys that are used for the first fastwarp are <Del><Right><Right><Right><Right>" (+ some more which are non-relevant).

I will not be fixing this (in v0.6), as it requires a major redesign.
If you're fine with disabling virtualedit=insert, then that's one way of solving the bug.
The bug is already solved in v0.7-pre-alpha as the feature is added that makes it possible to configure how much dot-compatibility you want (though it is not yet public to the user), so you will be able to just set it to no-dot-compatible for fastwarp.

@kaiphat
Copy link
Author

kaiphat commented Jul 29, 2024

Thank you! I disabled this options, it's okay for me.

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

No branches or pull requests

2 participants