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

<Plug>(operator-sandwich-replace) is slow in large files #94

Open
infokiller opened this issue May 6, 2020 · 0 comments
Open

<Plug>(operator-sandwich-replace) is slow in large files #94

infokiller opened this issue May 6, 2020 · 0 comments

Comments

@infokiller
Copy link

infokiller commented May 6, 2020

Thanks for the great plugin!

I'm using the following mapping:

nmap srr <Plug>(operator-sandwich-replace)<Plug>(textobj-sandwich-auto-a)

This works well in files with less than ~1000 lines, but there's a large delay in files with a few thousand lines. The problem seems to be <Plug>(operator-sandwich-replace), since if I try call feedkeys("\<Plug>(textobj-sandwich-auto-a)", 'm') it works fast enough, and if I try call feedkeys("\<Plug>(operator-sandwich-replace)ab*", 'm') (with plugin mappings turned off) it works

<Plug>(operator-sandwich-delete) works much faster.

@infokiller infokiller changed the title <Plug>(operator-sandwich-delete) is slow in large files <Plug>(operator-sandwich-delete) and <Plug>(operator-sandwich-replace) are slow in large files May 6, 2020
@infokiller infokiller changed the title <Plug>(operator-sandwich-delete) and <Plug>(operator-sandwich-replace) are slow in large files <Plug>(operator-sandwich-replace) is slow in large files May 6, 2020
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

1 participant