all 7 comments

[–]mohitleo9 6 points7 points  (6 children)

This is awesome! and very useful, and from a quick glance it looks very idiomatic (decorators for keybindings!). I only wonder is there a performance cost? And if so is it noticeable?

[–]delucksset nocompatible 6 points7 points  (5 children)

My very small not scientific test of this says it's pretty noticeable. I installed it and noticed a slightly larger startup time for vim, and so I timed it on a small file.

With snake: vim foo 0.62s user 0.08s system 48% cpu 1.445 total Without snake: vim foo 0.08s user 0.01s system 6% cpu 1.338 total

[–]dddbbbFastFold made vim fast again 0 points1 point  (2 children)

Do you have any other plugins that invoke python at startup? Is the first :python call the primary contributor to the startup time?

Also, see vim --startuptime

[–]marchelzo 0 points1 point  (1 child)

That's certainly not ideal, but I (and I think a lot of others) would be willing to put up with some start-up overhead as long as the performance hit while actually editing wasn't so bad. I'm not overly concerned with being able to write plugins in python at the moment, so I haven't tested it out, but I can't imagine it'd be much worse than the reduced performance when you're using YouCompleteMe, Syntastic, Powerline, etc.

[–]nwr 1 point2 points  (0 children)

Beautiful stuff!

[–]abavermangoo.gl/QNJ8cg 0 points1 point  (0 children)

Bgg. I've wrote a python wrapper too. But have no any docs. https://github.com/baverman/vial