vim 打开了没有权限写入的文件,怎么才能不必重新编辑

  命令行模式下输入 :w !sudo tee % > /dev/null

posted @ 2020-08-16 11:15  wangshaodong  阅读(352)  评论(0编辑  收藏  举报