The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 11-15-2003
max_min max_min is offline
Registered User
  
 

Join Date: Nov 2003
Posts: 10
See the man page for vi


view Start in read-only mode. You will be protected from writing the files. Can also be done with the "-R" argument.

-R Read-only mode. The 'readonly' option will be set. You can still edit the buffer, but will be prevented from accidently overwriting a file. If you do want to overwrite a file, add an exclamation mark to the Ex command, as in ":w!". The 'readonly' option can be reset with ":set noro". See ":help 'readonly'".