The file needs to be categorized as a text file. That categorization comes from whatever application you have installed that handles those files. If no such application is installed, then it won't work. I suggest looking for a yaml editor out there and hope that it provides the proper categorization.