It's a matter of principle for me as I'm struggling with it for a long time. I had this issue back on Mavericks and now on Yosemite 10.10.5.
What I'm trying to do is to set Sublime text 3 as a default text editor for all plain text files (my target were files with . and without extension, e.g .bashrc).
Here is an extract of ~/Library/Preferences/com.apple.LaunchServices.plist after I used this Replace Text Edit as the default text editor advice:
{
LSHandlers = (
{
LSHandlerContentType = "public.plain-text";
LSHandlerRoleAll = "com.sublimetext.3";
}
);
}
In Finder when I press CommandO on e.g .gitconfig file it still opens with TextEdit. Any help would be appreciated.