I just ran :Gist from an unnamed buffer with the swift filetype and was rather surprised to see the created gist defaulted to Plain Text. It should use the &filetype as the file type of the uploaded gist if it has no filename for it. There should also be a flag to override this explicitly.