我是靠谱客的博主 傲娇纸鹤,这篇文章主要介绍用vi修改文件,保存文件时,提示“readonly option is set”的解决方法。,现在分享给大家,希望可以做个参考。

来源:http://superuser.com/questions/300500/ubuntu-unable-to-edit-bashrc-file-because-of-readonly

This is a vim issue, not a file permission issue. If you did not have read permission on the file, you'd see a "Permission denied" error.

Do you invoke vi/vim with the -R option? Are you calling view instead of vi or vim? Do you have set readonly in your .vimrc or in a file in ~/.vim/ftplugin?

In vim you can enter :set noreadonly to unset the readonly flag.

步骤:

1.按Esc键

2.输入  :set noreadonly

3.然后就能正常保存了,你可以输入 :wq 来保存文件了。

最后

以上就是傲娇纸鹤最近收集整理的关于用vi修改文件,保存文件时,提示“readonly option is set”的解决方法。的全部内容,更多相关用vi修改文件,保存文件时,提示“readonly内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(78)

评论列表共有 0 条评论

立即
投稿
返回
顶部