I\'m aware of opening files in readonly mode from shell using vim -R, but how to open a file from inside vim in a separate tab (:tabe )
vim -R
:tabe
You can open a file in readonly mode from inside vim:
vim
:view /path/to/file
or from command line:
$ vim -M /path/to/file