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

Are people using Pyvim as their main editor? #127

Open
jtrakk opened this issue Jul 11, 2019 · 3 comments
Open

Are people using Pyvim as their main editor? #127

jtrakk opened this issue Jul 11, 2019 · 3 comments

Comments

@jtrakk
Copy link

jtrakk commented Jul 11, 2019

I really like the idea of this project. I'm curious if people are using Pyvim for their main editor. How does it compare to regular Vim in daily usage?

@wviana
Copy link

wviana commented Dec 6, 2019

Hi there. I've just discoverd this project.
I would love to try help it to get as close to vim as possible.

This project should have a sub-reddit.

@SqrtRyan
Copy link

No, although it's wonderful, it chokes on files that have 10,000 lines of code upward. Native vim doesn't choke on these. I think it has to do with the way prompt_toolkit handles syntax higlighting via pygments; and that it's not cacheing it as well as it could (because it slows down to unbearable speeds when you give it enough code at a time; vs vim which seems to maintain a constant speed regardless of how many lines of code are in the file you're editing)

@jonathanslenders
Copy link
Member

It is not so much the syntax highlighting that makes it slow.

It's the way the document content is stored. In prompt_toolkit, it's literally one Python string for the whole document. Every insertion of a character creates a new string. In order to make it more efficient, we should have a better data structure. But this would be an enormous refactoring, I don't think anyone is willing to attempt right now. Feel free to look into that.

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

4 participants