Taken from https://stackoverflow.com/questions/10493452/vim-open-a-temporary-buffer-displaying-executables-output