Open a file in readonly mode
To open a single file in vim in readonly mode, open your terminal and type
vi -R filename
To open a single file in vim in readonly mode, open your terminal and type
vi -R filename