Open a file in a tab in vim in readonly mode

后端 未结 7 1404
刺人心
刺人心 2021-01-30 12:25

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 )

相关标签:
7条回答
  • 2021-01-30 13:10
    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.

    0 讨论(0)
提交回复
热议问题