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
Just open your file by using :tabe , then enter :view. It will automatically switch to read-only mode.
:view