We can open Vim in read-only mode in two ways:
vim -R <file>
Or:
view <file>
A use case could be a file on a server with credentials that we want to read but be sure not to change.
See man vim for more information.
We can open Vim in read-only mode in two ways:
vim -R <file>
Or:
view <file>
A use case could be a file on a server with credentials that we want to read but be sure not to change.
See man vim for more information.