How do I succeed setting sublime text 3 as a default text editor on Yosemite? 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.
The best results with setting default applications I have achieved with a little tool called RCDefaultApp.

It installs as a preference pane in System Preferences. Open System Preferences > Default Apps and change all the applicable extensions and/or UTIs to Sublime Text.