Replace Text Edit as the default text editor I've seen questions like this which don't quite solve my problem.

I'd like to make Sublime Text 3 the default file viewer/editor for all files that currently use textedit.

Most of these files can be command+i'd, but the ones that have no extension cannot. They give all sorts of permissions errors such as the ones in this image 

Is there any way to just never use textedit, and instead set sublime as the default editor for all files?
Another option is to use duti (https://github.com/moretension/duti). 

Run brew install duti, save a filetype like this as:

duti -s com.sublimetext.3 public.plain-text all


The changes should be applied immediately, so you don't have to restart like when editing com.apple.LaunchServices.plist.

To also change the default application for executable scripts with no filename extension, add a line like this:

duti -s com.sublimetext.3 public.unix-executable all


Some files are also considered 'public.data', not 'public.plain-text', so you can do this as well:

duti -s com.sublimetext.3 public.data all