News for hackers. Stuff that matters.
Re:Snake: Full Python Scripting in Vim by zefei on Sunday May 17, 2015 @08:32PM (#9562341)
Nice work! The pip/virtualenv loader is really great, and can make the plugin dev more purely focused on the plugin. I think this part can be a great standalone project.

But I don't know about the boilerplate functions, some of them feel useful (like output capturing, state preserving), while others are just shallow abstractions over the vim API, which is almost never good. Abstraction over API is only useful when it provides different and better semantics, like jQuery over DOM.

Re:Snake: Full Python Scripting in Vim by vladharbuz on Sunday May 17, 2015 @07:08PM (#9562101)
This looks great! I know vimscript is painful, and even though I'm not sure how easy the existing Python solutions are, this seems like a breeze.
Re:Snake: Full Python Scripting in Vim by cschmidt on Sunday May 17, 2015 @07:23PM (#9562159)
Isn't this also one of the goals of NeoVim? That you can script from any language.
Re:Snake: Full Python Scripting in Vim by ludamad on Sunday May 17, 2015 @08:10PM (#9562296)
Sure, and you can in Vim for the most part too. Snake has some excellent ideas how to use idiomatic Python, however, which would likely rest upon a more low level exposure of NeoVim anyway.
Re:Snake: Full Python Scripting in Vim by adamors on Sunday May 17, 2015 @07:21PM (#9562151)
How does this differ from the Python support Vim already has?
Re:Snake: Full Python Scripting in Vim by egwynn on Sunday May 17, 2015 @07:55PM (#9562253)
It looks to me like boilerplate that allows you to more easily interface between the python world and the vim world. So instead of putting a bunch of python in your ~/.vimrc, you would install this plugin, and then put your relevant python in your ~/.vimrc.py.
Re:Snake: Full Python Scripting in Vim by emidln on Sunday May 17, 2015 @10:39PM (#9562660)
Adding to this answer, it looks like this will handle virtualenvs requested for dependencies as well (albeit not completely yet). This is a pretty big deal in order for almost anything non-trivial since libraries like requests quickly come into play.
Re:Snake: Full Python Scripting in Vim by nichochar on Sunday May 17, 2015 @08:42PM (#9562372)
This is so cool, thanks! I wonder what the limitations are?
Re:Snake: Full Python Scripting in Vim by nomel on Sunday May 17, 2015 @11:22PM (#9562738)
Your imagination. :D
Re:Snake: Full Python Scripting in Vim by raverbashing on Monday May 18, 2015 @07:43AM (#9563838)
So, Emacs running in a lisp interpreter running in python inside vim?
Re:Snake: Full Python Scripting in Vim by coley on Sunday May 17, 2015 @08:37PM (#9562358)
I'm looking forward to playing around with this. Vim is my editor of choice, and it would be nice to configure/extend it in something other than vimscript. Gives me a good reason to familiarize myself with Python as well.

Not to mention I'm a huge Metal Gear fan. =]

Re:Snake: Full Python Scripting in Vim by weavie on Monday May 18, 2015 @03:14AM (#9563145)
Isn't this actually "Vim scripting in Python"?
Re:Snake: Full Python Scripting in Vim by Stratoscope on Monday May 18, 2015 @03:54AM (#9563234)
English is a very flexible and versatile language. The word "in" may be used in either of those senses, among many others.

Dictionary.com lists examples of both meanings:

1. (used to indicate inclusion within space, a place, or limits): walking in the park.

5. (used to indicate means): sketched in ink; spoken in French.

http://dictionary.reference.com/browse/in

Re:Snake: Full Python Scripting in Vim by erikb on Monday May 18, 2015 @03:14AM (#9563144)
I never wrote Vimscript or Python plugins for vim. What's the difference between snake and vim's normal python plugins?
Re:Snake: Full Python Scripting in Vim by fideloper on Sunday May 17, 2015 @10:39PM (#9562657)
Currently feeling very deep nastalgia for Metal Gear
Re:Snake: Full Python Scripting in Vim by neotrinity on Monday May 18, 2015 @04:51AM (#9563374)
True that! When I first saw the starting credits of MGS i was like ...whoooaaaa !
Re:Snake: Full Python Scripting in Vim by afarrell on Monday May 18, 2015 @10:26AM (#9564598)
Is there some way I can pop into pdb when doing this? That would solve the biggest problem I have when writing vim scripts.
Re:Snake: Full Python Scripting in Vim by jamescampbell on Sunday May 17, 2015 @10:55PM (#9562688)
This might finally get me to switch from Sublime Text 3 to VIM. Been looking for an excuse to make the jump anyway.
Re:Snake: Full Python Scripting in Vim by Yuioup on Monday May 18, 2015 @09:07AM (#9564170)
There are no pathogen instructions. Can I just clone it into bundle directory? Will this work?

[Edit]: Grammar

Re:Snake: Full Python Scripting in Vim by UserRights on Monday May 18, 2015 @05:29AM (#9563478)
BTW what are your tips for programming python with vim?