Today I was learning the different methods for opening a file in Vim, and I recently learned the
view [filename] or
[vim_launcher] -R [file_name], while both of these commands are great, they don't actually force the Read-only mode, because you can still exit that mode and enter
insert mode, the only good thing about the Read-only mode is that you will get a nice-looking warning message when trying to edit the file.
When you actually open a file in Read-only, you want to avoid any type of mutation by accident, but the corresponding methods are not a good patch for this specific context.
I have done some digging but found no answer to this:
How to force the Read-only mode in the Vim | NVim text editor?