jpalardy/vim-slime — pull request #32 by Alexander-Dhoore (2013-02-01 16:17:32+00:00)
Title: And another python fix, even better this time!

Hi there!
So I started coding some python this morning.
At some point I was reading some user input and BAM!
The extra (unnecessary) empty lines that my last commit created were
screwing up my program (they were being read in as user input).

So here is the perfect solution that I wanted to do with regexes yesterday, but couldn't.
It only inserts empty lines in the places where it's actually needed.
There's comments in the code, so I think it's quite self-explanatory.

I'm starting to learn vimscript btw. It's fun.
Greets, Alexander