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
vim -R /path/to/file vim -m /path/to/file
Read-only mode. Modification in text is allowed but you cannot write (no saving).
vim -M /path/to/file
Even modification in text is not allowed.