如何在VIM中编辑的只读文件

1,以超级用户权限打开文件,即sudo vim ***

2,编辑完文件后输入:w !sudo tee %

猜你喜欢

转载自blog.csdn.net/weixin_42130167/article/details/83895814