jpalardy/vim-slime — pull request #14 by epeli (2012-04-08 20:03:00+00:00)
Title: Remove empty lines from Python code

When sending Python classes to the REPL, empty line breaks will break the code. Methods of the class are interpreted as separate code chunks by the REPL if there is even a single line break between them.

This pull request removes all lines with only white space characters in them during escaping.

This has small usability issue thou. In multi-line sends we should add one extra line break to the end of the snippet. But my Vim script-fu falls short here...