SirVer/ultisnips — pull request #25 by aschrab (2012-08-09 00:10:57+00:00)
Title: Vim interface for tests

I was looking into trying to write some tests for the fold expansion problem for which I'd previously sent a change, but had the problem that even with none of my changes applied most of the tests were failing for me. Looking into this revealed that the version of `screen` installed on my Debian unstable system has changed how the `stuff` command works such that some characters are special.

To fix this problem, additional escaping needs to be done for the new version of screen. In order to do this cleanly, I did some major refactoring of how the test script interacts with vim. With this series a family of classes is used for this interaction. This has the nice additional benefit of putting all of the Windows code into a separate class. Unfortunately, the version of vim I have installed on my Windows system won't load the UltiSnips plugin so I wasn't able to completely test these changes there; but the interactions between the test script and vim do seem to be working with these changes.