{"action":"created","issue":{"url":"https://api.github.com/repos/mattn/gist-vim/issues/185","labels_url":"https://api.github.com/repos/mattn/gist-vim/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/mattn/gist-vim/issues/185/comments","events_url":"https://api.github.com/repos/mattn/gist-vim/issues/185/events","html_url":"https://github.com/mattn/gist-vim/issues/185","id":81558674,"number":185,"title":"Gist should set the filetype on uploaded gists","user":{"login":"kballard","id":714,"avatar_url":"https://avatars.githubusercontent.com/u/714?v=3","gravatar_id":"","url":"https://api.github.com/users/kballard","html_url":"https://github.com/kballard","followers_url":"https://api.github.com/users/kballard/followers","following_url":"https://api.github.com/users/kballard/following{/other_user}","gists_url":"https://api.github.com/users/kballard/gists{/gist_id}","starred_url":"https://api.github.com/users/kballard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kballard/subscriptions","organizations_url":"https://api.github.com/users/kballard/orgs","repos_url":"https://api.github.com/users/kballard/repos","events_url":"https://api.github.com/users/kballard/events{/privacy}","received_events_url":"https://api.github.com/users/kballard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-27T18:07:22Z","updated_at":"2015-05-29T00:03:13Z","closed_at":null,"body":"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."},"comment":{"url":"https://api.github.com/repos/mattn/gist-vim/issues/comments/106633713","html_url":"https://github.com/mattn/gist-vim/issues/185#issuecomment-106633713","issue_url":"https://api.github.com/repos/mattn/gist-vim/issues/185","id":106633713,"user":{"login":"mattn","id":10111,"avatar_url":"https://avatars.githubusercontent.com/u/10111?v=3","gravatar_id":"","url":"https://api.github.com/users/mattn","html_url":"https://github.com/mattn","followers_url":"https://api.github.com/users/mattn/followers","following_url":"https://api.github.com/users/mattn/following{/other_user}","gists_url":"https://api.github.com/users/mattn/gists{/gist_id}","starred_url":"https://api.github.com/users/mattn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattn/subscriptions","organizations_url":"https://api.github.com/users/mattn/orgs","repos_url":"https://api.github.com/users/mattn/repos","events_url":"https://api.github.com/users/mattn/events{/privacy}","received_events_url":"https://api.github.com/users/mattn/received_events","type":"User","site_admin":false},"created_at":"2015-05-29T00:03:13Z","updated_at":"2015-05-29T00:03:13Z","body":"Ah, okay. please add below into your vimrc.\r\n```\r\nlet g:gist_extmap = { \".swift\": \"swift\" }\r\n```\r\nhttps://gist.github.com/mattn/94c90ed66771dd55dff2"}}