-
-
Notifications
You must be signed in to change notification settings - Fork 128
Gist should set the filetype on uploaded gists #185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
it doesn't work because gist server doesn't handle file extension. https://gist.github.com/mattn/614b1b9c863c95bf05f9#file-gistfile1-switf This is a post that i just posted. see the filename but not syntax highlighted. |
You typo'd the extension. It's "swift", not "switf". And it doesn't work because To clarify: I'm posting from an unnamed scratch buffer for which I've set the |
Ah, okay. please add below into your vimrc.
|
however, I'll add swift into default extmap. so if you will want to new file extension, please do it for new. |
Can you please document |
okay, will do |
I just ran
:Gist
from an unnamed buffer with theswift
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.The text was updated successfully, but these errors were encountered: