Cursor saving now looks for newlines and removes them

I changed the regexp matching to include newlines and then replaced the newlines in the vim command with space. Seems to work, but not very thoroughly tested. Also, I don't actually know Ruby, so forgive me if the code is clumsy.

Fix for issue #133