我明白这意味着强制做某事。
这样做时$ vim -R file
我进入read-only
模式,但这仅作为预防模式起作用
-R Readonly mode. The 'readonly' option will be set for all the
files being edited. You can still edit the buffer, but will
be prevented from accidentally overwriting a file. If you
forgot that you are in View mode and did make some changes,
you can overwrite a file by adding an exclamation mark to
the Ex command, as in ":w!". The 'readonly' option can be
reset with ":set …
Run Code Online (Sandbox Code Playgroud) vim ×1