vim在只读模式下修改文件

只需使用一条命令即可:

:w !sudo tee %

猜你喜欢

转载自blog.csdn.net/wszll_alex/article/details/77866065