Similar to how spell checking works. I have a custom syntax I wish to temporary apply to any filetype in the buffer. I figure the best way to do this is just change the filetype. But, I don’t know how to get back to previous filetype without being explicit. How can I accomplish this?
Share
You can use
:filetype detectto redetect the original filetype.