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

以普通用户打开文件

保存时执行

:w !sudo tee % > /dev/null

posted @ 2017-08-13 00:14  涉谷猫猫  阅读(376)  评论(0)    收藏  举报