vim以超级用户权限保存文件

以普通用户打开文件

保存时执行

:w !sudo tee % > /dev/null

原文地址:https://www.cnblogs.com/mkxzy/p/7352139.html