Remove last newline with vim
I was writing some tests for Asfaload and I needed to validate that a JSON file is generated correctly. I needed the file to be a one-line file, with no End Of Line character (I probably could have done it an other way, working with a file having an EOL, but let’s not consider this for the sake of this blog post). On a unix platform, when you save a file with vim, it will add a EOL character if there is none.