vim save error: E45: 'readonly' option is set (add ! to override)

When using vim/vm to edit files in Linux, the error "E45: 'readonly' option is set (add ! to override)" is often reported. This is because the root user is not logged in on the Linux server, resulting in no permission to edit and write files. Log in as the root user, and then use :wq to save the file.

When using vim/vm to edit files in Linux, an error message often appears:

This is because you do not log in as the root user in the Linux server and do not have permission to edit or write files.

Log in as root user, then type :wq to save the file.

vim save error: E45: \'readonly\' option is set (add ! to override)-1

1/5 - (2 votes)

Leave a Reply

Your email address will not be published. Required fields are marked *