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

highlight on yank issues #2

Open
Konfekt opened this issue Oct 30, 2024 · 2 comments
Open

highlight on yank issues #2

Konfekt opened this issue Oct 30, 2024 · 2 comments

Comments

@Konfekt
Copy link

Konfekt commented Oct 30, 2024

I have no luck exiting visual mode with https://github.com/girishji/vimbits/blob/04e47fba16e048b9b1a817ce1a9ef5b6a11e9f6c/autoload/vimbits/highlightonyank.vim :
with the legacy function, when escaping (= hitting <esc>) visual mode the penultimate visual selection becomes highlighted, whereas with the more recent one the whole buffer.
There are also error messages about invalid columns and line numbers every once in a while.

I did not succeed tracing back the underlying issues and reproduce, just leaving it for reference.

@girishji
Copy link
Owner

girishji commented Oct 30, 2024

Few things to help debug: 1) Inside catch clause print the exception (echom v:exception). 2) Set in_visual = false and check if it makes any difference. 3) Also, good to check if <esc> is mapped.

@Konfekt
Copy link
Author

Konfekt commented Oct 30, 2024

Thanks for the pointers, regarding 3) that was my first reaction, but it's pristine

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