Fixes issue #133

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.