r/programming • u/omegaender • Apr 26 '15
Pure Python Vim clone
https://github.com/jonathanslenders/pyvim13
u/marchelzo Apr 26 '15
Is this a Vi clone, or is it a Vim clone? The author seems to be confused. (see the repo description vs. the readme)
-1
u/mikehaggard Apr 26 '15
Now get me one person who isn't confused between the two, especially when some systems alias the two :X
32
u/montegramm Apr 26 '15
Probably any vim user? vi is pretty infuriating when you end up in it by surprise.
-4
u/vattenpuss Apr 27 '15
Most vim users seem to believe they are vi users. I'd wager vim users are even more clueless about the difference than other people are.
17
4
u/jonathan_sl Apr 27 '15
(Pyvim author here): About the speed: Yes, the data structure was indeed not (yet) designed for opening large files.
Actually, prompt-toolkit (the underlying library) was meant to be a readline replacement, and normally, nobody would type megabytes of text in a shell or REPL.
But now that we have proven that many things (like the key bindings, rendering, etc...) also do a very good job for an editor, we can implement for instance the "rope" data structure, or do something similar. I'm certainly interested in going that way and I think I'm able to do it. But no promises on my priorities or release dates. We will see. :)
Jonathan
1
u/ozhank Apr 27 '15
Why? I know the vim codebase is a bit mixed up, but it works for me, and I can still apply my vi/ed/sed knowledge gained last century - it works and for me is fast, no graphics to get in way.
7
u/klez Apr 27 '15
Maybe it's not an utilitarian project but just a cool exercise.
I don't get the mentality by which side projects need to have an end beside having fun coding something.
0
Apr 27 '15
[deleted]
1
u/chaotic-kotik Apr 27 '15
VimL is god damn slow and much more difficult to use, compared to python.
0
13
u/f1zzz Apr 26 '15
Some times I have large files, 3gb or larger. Some editors like Atom max at 2mb, others, even though they're 64bit, max at a few gb. Sublime will open them but hardly runs. VIM acts like it's any other file.
How does this clone handle large files?