Work around issue with trailing newlines in Vim.
Fix stupid exception.
Merge pull request #58 from Floobits/vim_newlines

Work around issue with trailing newlines in Vim.